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