|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.partition.impl.btree.KeyOnlyComparator
A TupleComparator that compares keys only.
Constructor Summary | |
KeyOnlyComparator(SerializableComparator comparator)
|
Method Summary | |
int |
compareKey(java.lang.Object key1,
java.lang.Object key2)
Compares key Object to determine their sorting order returning a value = to, < or > than 0. |
int |
compareValue(java.lang.Object value1,
java.lang.Object value2)
Comparse value Objects to determine their sorting order returning a value = to, < or > than 0. |
SerializableComparator |
getKeyComparator()
Gets the comparator used to compare keys. |
SerializableComparator |
getValueComparator()
Will throw an UnsupportedOperationException every time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KeyOnlyComparator(SerializableComparator comparator)
Method Detail |
public SerializableComparator getKeyComparator()
getKeyComparator
in interface TupleComparator
public SerializableComparator getValueComparator()
getValueComparator
in interface TupleComparator
public int compareKey(java.lang.Object key1, java.lang.Object key2)
compareKey
in interface TupleComparator
key1
- the first key to comparekey2
- the other key to compare to the first
public int compareValue(java.lang.Object value1, java.lang.Object value2)
compareValue
in interface TupleComparator
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 |