public static class KeyValue.KVComparator extends Object implements Comparator<KeyValue>
KeyValue.KeyComparator
.Constructor and Description |
---|
KeyValue.KVComparator() |
Modifier and Type | Method and Description |
---|---|
protected Object |
clone() |
int |
compare(KeyValue left,
KeyValue right) |
int |
compareColumns(KeyValue left,
byte[] right,
int roffset,
int rlength,
int rfamilyoffset) |
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.KVComparator |
getComparatorIgnoringTimestamps() |
KeyValue.KVComparator |
getComparatorIgnoringType() |
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.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public KeyValue.KeyComparator getRawComparator()
public int compare(KeyValue left, KeyValue right)
compare
in interface Comparator<KeyValue>
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
public KeyValue.KVComparator getComparatorIgnoringTimestamps()
public KeyValue.KVComparator getComparatorIgnoringType()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.