@InterfaceAudience.Public
public class BinaryPrefixComparator
extends org.apache.hadoop.hbase.filter.ByteArrayComparable
BinaryComparator.| Constructor and Description |
|---|
BinaryPrefixComparator(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 BinaryPrefixComparator |
parseFrom(byte[] pbBytes) |
byte[] |
toByteArray() |
public BinaryPrefixComparator(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 BinaryPrefixComparator parseFrom(byte[] pbBytes) throws org.apache.hadoop.hbase.exceptions.DeserializationException
pbBytes - A pb serialized BinaryPrefixComparator instanceBinaryPrefixComparator made from bytesorg.apache.hadoop.hbase.exceptions.DeserializationExceptiontoByteArray()Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.