@InterfaceAudience.Public public class NullComparator extends ByteArrayComparable
Bytes.compareTo(byte[], byte[]).| Constructor and Description |
|---|
NullComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(byte[] value) |
int |
compareTo(byte[] value,
int offset,
int length) |
int |
compareTo(ByteBuffer value,
int offset,
int length) |
boolean |
equals(Object obj) |
int |
hashCode() |
static NullComparator |
parseFrom(byte[] pbBytes)
Parse the serialized representation of
NullComparator |
byte[] |
toByteArray()
Returns The comparator serialized using pb
|
getValuepublic 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 int compareTo(ByteBuffer value, int offset, int length)
compareTo in class ByteArrayComparablepublic byte[] toByteArray()
toByteArray in class ByteArrayComparablepublic static NullComparator parseFrom(byte[] pbBytes) throws DeserializationException
NullComparatorpbBytes - A pb serialized NullComparator instanceNullComparator made from bytesDeserializationException - if an error occurredtoByteArray()Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.