Example usage for org.apache.hadoop.typedbytes TypedBytesWritable getValue

List of usage examples for org.apache.hadoop.typedbytes TypedBytesWritable getValue

Introduction

In this page you can find the example usage for org.apache.hadoop.typedbytes TypedBytesWritable getValue.

Prototype

public Object getValue() 

Source Link

Document

Get the typed bytes as a Java object.

Usage

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);
}