|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.KeyValue.KVComparator
public static class KeyValue.KVComparator
Compare KeyValues. When we compare KeyValues, we only compare the Key
portion. This means two KeyValues with same Key but different Values are
considered the same as far as this Comparator is concerned.
Hosts a KeyValue.MetaKeyComparator
.
Constructor Summary | |
---|---|
KeyValue.KVComparator()
|
Method Summary | |
---|---|
protected Object |
clone()
|
int |
compare(Cell left,
Cell right)
Compares the Key of a cell -- with fields being more significant in this order: rowkey, colfam/qual, timestamp, type, mvcc |
int |
compareColumns(KeyValue left,
byte[] right,
int roffset,
int rlength,
int rfamilyoffset)
|
protected int |
compareRowKey(Cell left,
Cell right)
|
int |
compareRows(byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength)
|
int |
compareRows(KeyValue left,
byte[] row)
|
int |
compareRows(KeyValue left,
KeyValue right)
|
int |
compareRows(KeyValue left,
short lrowlength,
KeyValue right,
short rrowlength)
|
int |
compareTimestamps(KeyValue left,
KeyValue right)
|
KeyValue.KeyComparator |
getRawComparator()
|
boolean |
matchingRowColumn(KeyValue left,
KeyValue right)
Compares the row and column of two keyvalues for equality |
boolean |
matchingRows(byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength)
|
boolean |
matchingRows(KeyValue left,
byte[] right)
|
boolean |
matchingRows(KeyValue left,
KeyValue right)
Compares the row of two keyvalues for equality |
boolean |
matchingRows(KeyValue left,
short lrowlength,
KeyValue right,
short rrowlength)
|
boolean |
matchingRowsGreaterTimestamp(KeyValue left,
KeyValue right)
Compares the row and timestamp of two keys Was called matchesWithoutColumn in HStoreKey. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public KeyValue.KVComparator()
Method Detail |
---|
public KeyValue.KeyComparator getRawComparator()
protected int compareRowKey(Cell left, Cell right)
public int compare(Cell left, Cell right)
compare
in interface Comparator<Cell>
public int compareTimestamps(KeyValue left, KeyValue right)
public int compareRows(KeyValue left, KeyValue right)
left
- right
-
public int compareRows(KeyValue left, short lrowlength, KeyValue right, short rrowlength)
left
- lrowlength
- Length of left row.right
- rrowlength
- Length of right row.
public int compareRows(KeyValue left, byte[] row)
left
- row
- - row key (arbitrary byte array)
public int compareRows(byte[] left, int loffset, int llength, byte[] right, int roffset, int rlength)
public int compareColumns(KeyValue left, byte[] right, int roffset, int rlength, int rfamilyoffset)
public boolean matchingRowColumn(KeyValue left, KeyValue right)
left
- right
-
public boolean matchingRows(KeyValue left, byte[] right)
left
- right
-
public boolean matchingRows(KeyValue left, KeyValue right)
left
- right
-
public boolean matchingRows(KeyValue left, short lrowlength, KeyValue right, short rrowlength)
left
- lrowlength
- right
- rrowlength
-
public boolean matchingRows(byte[] left, int loffset, int llength, byte[] right, int roffset, int rlength)
public boolean matchingRowsGreaterTimestamp(KeyValue left, KeyValue right)
right
- Key to compare against.
right
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |