org.apache.hadoop.hbase
Class KeyValue.KeyComparator
java.lang.Object
org.apache.hadoop.hbase.KeyValue.KeyComparator
- All Implemented Interfaces:
- Comparator<byte[]>, org.apache.hadoop.io.RawComparator<byte[]>
- Direct Known Subclasses:
- KeyValue.MetaKeyComparator
- Enclosing class:
- KeyValue
public static class KeyValue.KeyComparator
- extends Object
- implements org.apache.hadoop.io.RawComparator<byte[]>
Compare key portion of a KeyValue
.
Method Summary |
int |
compare(byte[] left,
byte[] right)
|
int |
compare(byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength)
|
protected int |
compareColumns(byte[] left,
int loffset,
int llength,
int lfamilylength,
byte[] right,
int roffset,
int rlength,
int rfamilylength)
|
int |
compareRows(byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyValue.KeyComparator
public KeyValue.KeyComparator()
compare
public int compare(byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength)
- Specified by:
compare
in interface org.apache.hadoop.io.RawComparator<byte[]>
compare
public int compare(byte[] left,
byte[] right)
- Specified by:
compare
in interface Comparator<byte[]>
compareRows
public int compareRows(byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength)
compareColumns
protected int compareColumns(byte[] left,
int loffset,
int llength,
int lfamilylength,
byte[] right,
int roffset,
int rlength,
int rfamilylength)
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.