@InterfaceAudience.Public public class LongComparator extends ByteArrayComparable
| Constructor and Description |
|---|
LongComparator(long value) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(byte[] value,
int offset,
int length) |
int |
compareTo(ByteBuffer value,
int offset,
int length) |
static LongComparator |
parseFrom(byte[] pbBytes)
Parses a serialized representation of
LongComparator |
byte[] |
toByteArray()
Returns The comparator serialized using pb
|
compareTo, getValuepublic 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 LongComparator parseFrom(byte[] pbBytes) throws DeserializationException
LongComparatorpbBytes - A pb serialized LongComparator instanceLongComparator made from bytesDeserializationException - if an error occurredtoByteArray()Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.