public interface WritableRawComparable extends org.apache.hadoop.io.WritableComparable<WritableRawComparable>
WritableComparable which is comparable in is bytes.
Clients must override Object.hashCode() and Object.equals(Object).| Modifier and Type | Method and Description |
|---|---|
int |
compareInBytes(byte[] b1,
int o1,
byte[] b2,
int o2)
Compares two objects in bytes.
|
int |
getSizeInBytes(byte[] buf,
int offset)
Computes and returns size in bytes.
|
compareToint getSizeInBytes(byte[] buf,
int offset)
throws IOException
buf - bytes arrayoffset - bytes offsetIOException - if failed to compute sizeint compareInBytes(byte[] b1,
int o1,
byte[] b2,
int o2)
throws IOException
b1 - bytes representation of the first objecto1 - offset of the first objectb2 - bytes representation of the second objecto2 - offset of the second objectIOException - if failed to comparisonCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.