Example usage for Java org.apache.hadoop.io WritableComparator fields, constructors, methods, implement or subclass
The text is from its open source code.
int | compare(WritableComparable a, WritableComparable b) Compare two WritableComparables. |
int | compare(Object a, Object b) |
int | compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) Optimization hook. |
int | compareBytes(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) Lexicographic order of binary data. |
WritableComparator | get(Class extends WritableComparable> c) For backwards compatibility. |
int | hashBytes(byte[] bytes, int length) Compute hash for binary data. |
double | readDouble(byte[] bytes, int start) Parse a double from a byte array. |
float | readFloat(byte[] bytes, int start) Parse a float from a byte array. |
int | readInt(byte[] bytes, int start) Parse an integer from a byte array. |
long | readLong(byte[] bytes, int start) Parse a long from a byte array. |
int | readUnsignedShort(byte[] bytes, int start) Parse an unsigned short from a byte array. |
int | readVInt(byte[] bytes, int start) Reads a zero-compressed encoded integer from a byte array and returns it. |
long | readVLong(byte[] bytes, int start) Reads a zero-compressed encoded long from a byte array and returns it. |