List of usage examples for org.apache.hadoop.typedbytes TypedBytesWritable getValue
public Object getValue()
From source file:fm.last.feathers.output.MultipleSequenceFiles.java
License:Apache License
protected TypedBytesWritable generateActualKey(TypedBytesWritable key, TypedBytesWritable value) { key.setValue(((ArrayList) key.getValue()).get(1)); return key;/*from w w w .ja v a2 s .c o m*/ }
From source file:fm.last.feathers.output.MultipleSequenceFiles.java
License:Apache License
protected String generateFileNameForKeyValue(TypedBytesWritable key, TypedBytesWritable value, String name) { String dir = ((ArrayList) key.getValue()).get(0).toString(); return new Path(dir, name).toString(); }
From source file:fm.last.feathers.partition.Prefix.java
License:Apache License
public int getPartition(TypedBytesWritable key, TypedBytesWritable value, int numPartitions) { partKey.setValue(((ArrayList) key.getValue()).get(0)); return super.getPartition(partKey, value, numPartitions); }