com.sleepycat.je.dbi
Class DupKeyData.TwoPartKeyComparator
java.lang.Object
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.
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 |
DupKeyData.TwoPartKeyComparator
public DupKeyData.TwoPartKeyComparator(Comparator<byte[]> btreeComparator,
Comparator<byte[]> dupComparator)
compare
public int compare(byte[] twoPartKey1,
byte[] twoPartKey2)
- Specified by:
compare
in interface Comparator<byte[]>
Copyright (c) 2004-2012 Oracle. All rights reserved.