com.sleepycat.je.dbi
Class DupKeyData.NextNoDupComparator

java.lang.Object
  extended by com.sleepycat.je.dbi.DupKeyData.NextNoDupComparator
All Implemented Interfaces:
Comparator<byte[]>
Enclosing class:
DupKeyData

public static class DupKeyData.NextNoDupComparator
extends Object
implements Comparator<byte[]>

Used to perform the getNextNoDup operation. Compares the left parameter (the key parameter in a user-initiated search operation) as: - less than a right operand with a prefix with is less than the prefix of the left operand. This is standard. - greater than a right operand with a prefix with is greater than the prefix of the left operand. This is standard. - greater than a right operand with a prefix equal to the prefix of the left operation. This is non-standard. The last property causes the range search to find the first duplicate in the duplicate set following the duplicate set of the left operand.


Constructor Summary
DupKeyData.NextNoDupComparator(Comparator<byte[]> btreeComparator)
           
 
Method Summary
 int compare(byte[] twoPartKey1, byte[] twoPartKey2)
           
 
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

DupKeyData.NextNoDupComparator

public DupKeyData.NextNoDupComparator(Comparator<byte[]> btreeComparator)
Method Detail

compare

public int compare(byte[] twoPartKey1,
                   byte[] twoPartKey2)
Specified by:
compare in interface Comparator<byte[]>


Copyright (c) 2004-2012 Oracle. All rights reserved.