@InterfaceAudience.Public public class BinaryComparator extends ByteArrayComparable
Bytes.compareTo(byte[], byte[]).| Constructor and Description |
|---|
BinaryComparator(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 BinaryComparator |
parseFrom(byte[] pbBytes)
Parse a serialized representation of
BinaryComparator |
byte[] |
toByteArray()
Returns The comparator serialized using pb
|
compareTo, getValuepublic BinaryComparator(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 BinaryComparator parseFrom(byte[] pbBytes) throws DeserializationException
BinaryComparatorpbBytes - A pb serialized BinaryComparator instanceBinaryComparator made from bytesDeserializationException - if an error occurredtoByteArray()Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.