|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TupleComparator<K,V>
Used to compare the sorting order of binary data.
Method Summary | |
---|---|
int |
compareKey(K key1,
K key2)
Compares key Object to determine their sorting order returning a value = to, < or > than 0. |
int |
compareValue(V value1,
V value2)
Comparse value Objects to determine their sorting order returning a value = to, < or > than 0. |
SerializableComparator<K> |
getKeyComparator()
Gets the comparator used to compare keys. |
SerializableComparator<V> |
getValueComparator()
Gets the binary comparator used to compare valuess. |
Method Detail |
---|
SerializableComparator<K> getKeyComparator()
SerializableComparator<V> getValueComparator()
int compareKey(K key1, K key2)
key1
- the first key to comparekey2
- the other key to compare to the first
int compareValue(V value1, V value2)
value1
- the first value to comparevalue2
- the other value to compare to the first
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |