|
|||||||||||
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.IndexComparator
TupleComparator for index records.
Constructor Summary | |
IndexComparator(SerializableComparator keyComp,
boolean isForwardMap)
Creates an IndexComparator. |
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()
Gets the binary comparator used to compare valuess. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IndexComparator(SerializableComparator keyComp, boolean isForwardMap)
keyComp
- the table comparator to use for keysisForwardMap
- whether or not the comparator should swap the
key value pair while conducting comparisons.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 |