List of usage examples for org.apache.hadoop.mapred.lib MultipleSequenceFileOutputFormat subclass-usage
From source file babel.prep.corpus.MultipleLangFileOutputFormat.java
public class MultipleLangFileOutputFormat extends MultipleSequenceFileOutputFormat<Text, Page> { static final Log LOG = LogFactory.getLog(MultipleLangFileOutputFormat.class); protected String generateFileNameForKeyValue(Text key, Page page, String name) { Language lang = page.getLanguage(); String langStr = (lang == null) ? "none" : lang.toString();
From source file fm.last.feathers.output.MultipleSequenceFiles.java
public class MultipleSequenceFiles extends MultipleSequenceFileOutputFormat<TypedBytesWritable, TypedBytesWritable> { protected TypedBytesWritable generateActualKey(TypedBytesWritable key, TypedBytesWritable value) { key.setValue(((ArrayList) key.getValue()).get(1)); return key;
From source file pathmerge.utils.MergePathMultiSeqOutputFormat.java
public class MergePathMultiSeqOutputFormat extends MultipleSequenceFileOutputFormat<VKmerBytesWritable, MergePathValueWritable> { @Override protected String generateLeafFileName(String name) { // TODO Auto-generated method stub System.out.println(name); String[] names = name.split("-");