public class BinaryComparator extends WritableByteArrayComparable
Bytes.compareTo(byte[], byte[])
.Constructor and Description |
---|
BinaryComparator()
Nullary constructor for Writable, do not use
|
BinaryComparator(byte[] value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(byte[] value,
int offset,
int length)
Special compareTo method for subclasses, to avoid
copying byte[] unnecessarily.
|
compareTo, getValue, readFields, write
public BinaryComparator()
public BinaryComparator(byte[] value)
value
- valuepublic int compareTo(byte[] value, int offset, int length)
WritableByteArrayComparable
compareTo
in class WritableByteArrayComparable
value
- byte[] to compareoffset
- offset into valuelength
- number of bytes to compareCopyright © 2014 The Apache Software Foundation. All Rights Reserved.