@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) |
int |
compareTo(ByteBuffer value,
int offset,
int length) |
static BinaryPrefixComparator |
parseFrom(byte[] pbBytes) |
byte[] |
toByteArray()
Returns The comparator serialized using pb
|
compareTo, getValuepublic BinaryPrefixComparator(byte[] value)
value - valuepublic int compareTo(byte[] value,
int offset,
int length)
compareTo in class ByteArrayComparablepublic int compareTo(ByteBuffer value, int offset, int length)
compareTo in class ByteArrayComparablepublic byte[] toByteArray()
toByteArray in class ByteArrayComparablepublic static BinaryPrefixComparator parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes - A pb serialized BinaryPrefixComparator instanceBinaryPrefixComparator made from bytesDeserializationExceptiontoByteArray()Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.