org.apache.hadoop.hbase.filter
Class BinaryComparator

java.lang.Object
  extended by 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[]).


Constructor Summary
BinaryComparator()
          Writable constructor, do not use.
BinaryComparator(byte[] value)
          Constructor.
 
Method Summary
 int compareTo(byte[] value)
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryComparator

public BinaryComparator()
Writable constructor, do not use.


BinaryComparator

public BinaryComparator(byte[] value)
Constructor.

Parameters:
value - the value to compare against
Method Detail

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