org.apache.hadoop.hbase.client.tableindexed
Class ReverseByteArrayComparator

java.lang.Object
  extended by org.apache.hadoop.hbase.client.tableindexed.ReverseByteArrayComparator
All Implemented Interfaces:
Comparator<byte[]>, WritableComparator<byte[]>, org.apache.hadoop.io.Writable

public class ReverseByteArrayComparator
extends Object
implements WritableComparator<byte[]>


Constructor Summary
ReverseByteArrayComparator()
           
 
Method Summary
 int compare(byte[] o1, byte[] o2)
          
 void readFields(DataInput arg0)
          
 void write(DataOutput arg0)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ReverseByteArrayComparator

public ReverseByteArrayComparator()
Method Detail

compare

public int compare(byte[] o1,
                   byte[] o2)

Specified by:
compare in interface Comparator<byte[]>

readFields

public void readFields(DataInput arg0)
                throws IOException

Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput arg0)
           throws IOException

Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException


Copyright © 2008 The Apache Software Foundation