|
||||||||||
| 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.DefaultTupleComparator<K,V>
public class DefaultTupleComparator<K,V>
The default implementation of a pair of comparators which compares both keys and values of a Tuple.
| Constructor Summary | |
|---|---|
DefaultTupleComparator(org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<K> keyComparator,
org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<V> valueComparator)
|
|
| 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(V value1,
V value2)
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<V> |
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 DefaultTupleComparator(org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<K> keyComparator,
org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<V> valueComparator)
| Method Detail |
|---|
public org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<K> getKeyComparator()
TupleComparator
getKeyComparator in interface TupleComparator<K,V>public org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<V> getValueComparator()
TupleComparator
getValueComparator in interface TupleComparator<K,V>
public int compareKey(K key1,
K key2)
TupleComparator
compareKey in interface TupleComparator<K,V>key1 - the first key to comparekey2 - the other key to compare to the first
public int compareValue(V value1,
V value2)
TupleComparator
compareValue in interface TupleComparator<K,V>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 | |||||||||