@InterfaceAudience.Public
public class BinaryComparator
extends org.apache.hadoop.hbase.filter.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) |
byte[] |
toByteArray() |
public BinaryComparator(byte[] value)
value - valuepublic int compareTo(byte[] value,
int offset,
int length)
compareTo in class org.apache.hadoop.hbase.filter.ByteArrayComparablepublic int compareTo(ByteBuffer value, int offset, int length)
compareTo in class org.apache.hadoop.hbase.filter.ByteArrayComparablepublic byte[] toByteArray()
toByteArray in class org.apache.hadoop.hbase.filter.ByteArrayComparablepublic static BinaryComparator parseFrom(byte[] pbBytes) throws org.apache.hadoop.hbase.exceptions.DeserializationException
pbBytes - A pb serialized BinaryComparator instanceBinaryComparator made from bytesorg.apache.hadoop.hbase.exceptions.DeserializationExceptiontoByteArray()Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.