com.sleepycat.persist.impl
Class PersistComparator
java.lang.Object
com.sleepycat.persist.impl.PersistComparator
- All Implemented Interfaces:
- Serializable, Comparator<byte[]>
public class PersistComparator
- extends Object
- implements Comparator<byte[]>, 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.
- Author:
- Mark Hayes
- See Also:
- Serialized Form
PersistComparator
public PersistComparator(PersistKeyBinding binding)
compare
public int compare(byte[] b1,
byte[] b2)
- Specified by:
compare
in interface Comparator<byte[]>
toString
public String toString()
- Overrides:
toString
in class Object
Copyright (c) 2004-2010 Oracle. All rights reserved.