List of usage examples for org.apache.hadoop.io BytesWritable getLength
@Override public int getLength()
From source file:voldemort.store.readonly.mr.utils.HadoopUtils.java
License:Apache License
/** * read and return integer from the END of BytesWritable The tag bytes are * NOT removed/* www. j a va 2s .c o m*/ */ public static int readTag(BytesWritable readable) { return ByteUtils.readInt(readable.getBytes(), readable.getLength() - 4); }