org.apache.hadoop.hbase.filter
Class BinaryPrefixComparator
java.lang.Object
org.apache.hadoop.hbase.filter.WritableByteArrayComparable
org.apache.hadoop.hbase.filter.BinaryPrefixComparator
- All Implemented Interfaces:
- Comparable<byte[]>, org.apache.hadoop.io.Writable
public class BinaryPrefixComparator
- extends WritableByteArrayComparable
A comparator which compares against a specified byte array, but only compares
up to the length of this byte array. For the rest it is similar to
BinaryComparator
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryPrefixComparator
public BinaryPrefixComparator()
- Nullary constructor for Writable, do not use
BinaryPrefixComparator
public BinaryPrefixComparator(byte[] value)
- Constructor
- Parameters:
value
- value
compareTo
public int compareTo(byte[] value)
- Specified by:
compareTo
in interface Comparable<byte[]>
- Overrides:
compareTo
in class WritableByteArrayComparable
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.