|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.backends.jeb.EntryContainer.KeyReverseComparator
public static class EntryContainer.KeyReverseComparator
A lexicographic byte array comparator that compares in reverse byte order. This is used for the dn2id database. If we want to find all the entries in a subtree dc=com we know that all subordinate entries must have ,dc=com as a common suffix. In reversing the order of comparison we turn the subtree base into a common prefix and are able to iterate through the keys having that prefix.
Constructor Summary | |
---|---|
EntryContainer.KeyReverseComparator()
|
Method Summary | |
---|---|
int |
compare(byte[] a,
byte[] b)
Compares its two arguments for order. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public EntryContainer.KeyReverseComparator()
Method Detail |
---|
public int compare(byte[] a, byte[] b)
compare
in interface java.util.Comparator<byte[]>
a
- the first object to be compared.b
- the second object to be compared.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |