public class VLVKeyComparator extends Object implements com.sleepycat.je.DatabaseComparator
| Constructor and Description |
|---|
VLVKeyComparator(org.forgerock.opendj.ldap.schema.MatchingRule[] orderingRules,
boolean[] ascending)
Construct a new VLV Key Comparator object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(byte[] b1,
byte[] b2)
Compares the contents of the provided byte arrays to determine their
relative order.
|
int |
compare(SortValuesSet set,
int index,
long entryID,
org.forgerock.opendj.ldap.ByteString[] values)
Compares the contents in the provided values set with the given values to
determine their relative order.
|
void |
initialize(ClassLoader loader) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic VLVKeyComparator(org.forgerock.opendj.ldap.schema.MatchingRule[] orderingRules, boolean[] ascending)
orderingRules - The array of ordering rules to use when comparing
the decoded values in the key.ascending - The array of booleans indicating the ordering for
each value.public int compare(byte[] b1, byte[] b2)
compare in interface Comparator<byte[]>b1 - The first byte array to use in the comparison.b2 - The second byte array to use in the comparison.b1 should come before
b2 in ascending order, a positive integer if
b1 should come after b2 in ascending
order, or zero if there is no difference between the values with
regard to ordering.public int compare(SortValuesSet set, int index, long entryID, org.forgerock.opendj.ldap.ByteString[] values) throws com.sleepycat.je.DatabaseException, DirectoryException
set - The sort values set to containing the values.index - The index of the values in the set.entryID - The entry ID to use in the comparison.values - The values to use in the comparison.com.sleepycat.je.DatabaseException - If an error occurs during an operation on a
JE database.DirectoryException - If an error occurs while trying to
normalize the value (e.g., if it is
not acceptable for use with the
associated equality matching rule).public void initialize(ClassLoader loader)
initialize in interface com.sleepycat.je.DatabaseComparatorCopyright © 2010-2015 ForgeRock AS. All Rights Reserved.