com.sleepycat.persist.impl
Class PersistComparator

java.lang.Object
  extended by com.sleepycat.persist.impl.PersistComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<byte[]>

public class PersistComparator
extends java.lang.Object
implements java.util.Comparator<byte[]>, java.io.Serializable

The btree comparator for persistent key classes. The serialized form of this comparator is stored in the BDB JE database descriptor so that the comparator can be re-created during recovery.

See Also:
Serialized Form

Constructor Summary
PersistComparator(PersistKeyBinding binding)
           
 
Method Summary
 int compare(byte[] b1, byte[] b2)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

PersistComparator

public PersistComparator(PersistKeyBinding binding)
Method Detail

compare

public int compare(byte[] b1,
                   byte[] b2)
Specified by:
compare in interface java.util.Comparator<byte[]>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object