|
|||||||||
| 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
public class IndexComparator
TupleComparator for index records.
| Constructor Summary | |
|---|---|
IndexComparator(org.apache.directory.server.schema.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. |
org.apache.directory.server.schema.SerializableComparator |
getKeyComparator()
Gets the comparator used to compare keys. |
org.apache.directory.server.schema.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(org.apache.directory.server.schema.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 org.apache.directory.server.schema.SerializableComparator getKeyComparator()
getKeyComparator in interface TupleComparatorpublic org.apache.directory.server.schema.SerializableComparator getValueComparator()
getValueComparator in interface TupleComparator
public int compareKey(java.lang.Object key1,
java.lang.Object key2)
compareKey in interface TupleComparatorkey1 - 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 TupleComparatorvalue1 - 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 | ||||||||