@InterfaceAudience.Public public class BinaryPrefixComparator extends ByteArrayComparable
BinaryComparator.| Constructor and Description |
|---|
BinaryPrefixComparator(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.
|
int |
compareTo(ByteBuffer value,
int offset,
int length)
Special compareTo method for subclasses, to avoid copying bytes unnecessarily.
|
static BinaryPrefixComparator |
parseFrom(byte[] pbBytes)
Parse a serialized representation of
BinaryPrefixComparator |
byte[] |
toByteArray()
Returns The comparator serialized using pb
|
compareTo, getValuepublic BinaryPrefixComparator(byte[] value)
value - valuepublic int compareTo(byte[] value, int offset, int length)
ByteArrayComparablecompareTo in class ByteArrayComparablevalue - byte[] to compareoffset - offset into valuelength - number of bytes to comparepublic int compareTo(ByteBuffer value, int offset, int length)
ByteArrayComparablecompareTo in class ByteArrayComparablevalue - bytes to compare within a ByteBufferoffset - offset into valuelength - number of bytes to comparepublic byte[] toByteArray()
toByteArray in class ByteArrayComparablepublic static BinaryPrefixComparator parseFrom(byte[] pbBytes) throws org.apache.hadoop.hbase.exceptions.DeserializationException
BinaryPrefixComparatorpbBytes - A pb serialized BinaryPrefixComparator instanceBinaryPrefixComparator made from bytesorg.apache.hadoop.hbase.exceptions.DeserializationException - if an error occurredtoByteArray()Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.