Berkeley DB Java Edition
version 5.0.34

com.sleepycat.je
Interface DatabaseComparator

All Superinterfaces:
Comparator<byte[]>, Serializable

public interface DatabaseComparator
extends Comparator<byte[]>, Serializable

Implemented by btree and duplicate comparators that need to be initialized before they are used or need access to the environment's ClassLoader property.

Since:
5.0

Method Summary
 void initialize(ClassLoader loader)
          Called to initialize a comparator object after it is instantiated or deserialized, and before it is used.
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Method Detail

initialize

void initialize(ClassLoader loader)
Called to initialize a comparator object after it is instantiated or deserialized, and before it is used.

Parameters:
loader - is the environment's ClassLoader property.

Berkeley DB Java Edition
version 5.0.34

Copyright (c) 2004-2011 Oracle. All rights reserved.