@InterfaceAudience.Public public class BinaryComponentComparator extends ByteArrayComparable
BinaryComparator.| Constructor and Description |
|---|
BinaryComponentComparator(byte[] value,
int offset)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(byte[] value) |
int |
compareTo(byte[] value,
int offset,
int length) |
boolean |
equals(Object other) |
int |
hashCode() |
static BinaryComponentComparator |
parseFrom(byte[] pbBytes)
Parse a serialized representation of
BinaryComponentComparator |
byte[] |
toByteArray()
Returns The comparator serialized using pb
|
compareTo, getValuepublic BinaryComponentComparator(byte[] value,
int offset)
value - value of the componentoffset - offset of the component from beginingpublic int compareTo(byte[] value)
compareTo in interface Comparable<byte[]>compareTo in class ByteArrayComparablepublic int compareTo(byte[] value,
int offset,
int length)
compareTo in class ByteArrayComparablepublic byte[] toByteArray()
toByteArray in class ByteArrayComparablepublic static BinaryComponentComparator parseFrom(byte[] pbBytes) throws DeserializationException
BinaryComponentComparatorpbBytes - A pb serialized BinaryComponentComparator instanceBinaryComponentComparator made from bytesDeserializationException - if an error occurredtoByteArray()Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.