@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)
Special compareTo method for subclasses, to avoid
copying byte[] unnecessarily.
|
int |
compareTo(ByteBuffer value,
int offset,
int length)
Special compareTo method for subclasses, to avoid copying bytes unnecessarily.
|
static LongComparator |
parseFrom(byte[] pbBytes) |
byte[] |
toByteArray() |
compareTo, getValue
public LongComparator(long value)
public int compareTo(byte[] value, int offset, int length)
ByteArrayComparable
compareTo
in class ByteArrayComparable
value
- byte[] to compareoffset
- offset into valuelength
- number of bytes to comparepublic int compareTo(ByteBuffer value, int offset, int length)
ByteArrayComparable
compareTo
in class ByteArrayComparable
value
- bytes to compare within a ByteBufferoffset
- offset into valuelength
- number of bytes to comparepublic byte[] toByteArray()
toByteArray
in class ByteArrayComparable
public static LongComparator parseFrom(byte[] pbBytes) throws org.apache.hadoop.hbase.exceptions.DeserializationException
pbBytes
- A pb serialized LongComparator
instanceLongComparator
made from bytes
org.apache.hadoop.hbase.exceptions.DeserializationException
toByteArray()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.