com.sleepycat.je.dbi
Class DupKeyData.TwoPartKeyComparator

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

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

Comparator that compares the combined key/data two-part key, calling the user-defined btree and duplicate comparator as needed.


Constructor Summary
DupKeyData.TwoPartKeyComparator(Comparator<byte[]> btreeComparator, Comparator<byte[]> dupComparator)
           
 
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.TwoPartKeyComparator

public DupKeyData.TwoPartKeyComparator(Comparator<byte[]> btreeComparator,
                                       Comparator<byte[]> dupComparator)
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.