org.apache.hadoop.hbase.filter
Class BinaryComparator
java.lang.Object
org.apache.hadoop.hbase.filter.BinaryComparator
- All Implemented Interfaces:
- Comparable<byte[]>, WritableByteArrayComparable, org.apache.hadoop.io.Writable
public class BinaryComparator
- extends Object
- implements WritableByteArrayComparable
A binary comparator which lexicographically compares against the specified
byte array using Bytes.compareTo(byte[], byte[])
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryComparator
public BinaryComparator()
- Writable constructor, do not use.
BinaryComparator
public BinaryComparator(byte[] value)
- Constructor.
- Parameters:
value
- the value to compare against
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
compareTo
public int compareTo(byte[] value)
- Specified by:
compareTo
in interface Comparable<byte[]>
Copyright © 2009 The Apache Software Foundation