com.sleepycat.persist.impl
Class PersistComparator
java.lang.Object
com.sleepycat.persist.impl.PersistComparator
- All Implemented Interfaces:
- Serializable, Comparator<Object>
public class PersistComparator
- extends Object
- implements Comparator<Object>, 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistComparator
public PersistComparator(String keyClassName,
List<FieldMetadata> compositeKeyFields,
PersistKeyBinding binding)
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare
in interface Comparator<Object>
Copyright 2004-2006 Sleepycat, Inc. All Rights Reserved.