|
||||||||||
| 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.ForwardIndexComparator<K>
public class ForwardIndexComparator<K>
TupleComparator for index records.
| Constructor Summary | |
|---|---|
ForwardIndexComparator(org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<K> keyComparator)
Creates an IndexComparator. |
|
| 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(Long l1,
Long l2)
Comparse value Objects to determine their sorting order returning a value = to, < or > than 0. |
org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<K> |
getKeyComparator()
Gets the comparator used to compare keys. |
org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<Long> |
getValueComparator()
Gets the binary comparator used to compare values which are the indices into the master table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForwardIndexComparator(org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<K> keyComparator)
keyComparator - the table comparator to use for keys| Method Detail |
|---|
public org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<K> getKeyComparator()
getKeyComparator in interface TupleComparator<K,Long>public org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<Long> getValueComparator()
getValueComparator in interface TupleComparator<K,Long>
public int compareKey(K key1,
K key2)
compareKey in interface TupleComparator<K,Long>key1 - the first key to comparekey2 - the other key to compare to the first
public int compareValue(Long l1,
Long l2)
compareValue in interface TupleComparator<K,Long>l1 - the first Long value to comparel2 - the other Long value to compare to the first
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||