org.opends.server.backends.jeb
Interface IndexBuilder


public interface IndexBuilder

The interface that represents a index builder for the import process.


Method Summary
 void processEntry(Entry oldEntry, Entry newEntry, EntryID entryID)
          Indicates that the index thread should process the provided entry.
 void startProcessing()
          This method must be called before this object can process any entries.
 void stopProcessing()
          Indicates that there will be no more updates.
 

Method Detail

startProcessing

void startProcessing()
This method must be called before this object can process any entries. It cleans up any temporary files left over from a previous import.


processEntry

void processEntry(Entry oldEntry,
                  Entry newEntry,
                  EntryID entryID)
                  throws com.sleepycat.je.DatabaseException,
                         java.io.IOException,
                         DirectoryException
Indicates that the index thread should process the provided entry.

Parameters:
oldEntry - The existing contents of the entry, or null if this is a new entry.
newEntry - The new contents of the entry.
entryID - The entry ID.
Throws:
com.sleepycat.je.DatabaseException - If an error occurs in the JE database.
java.io.IOException - If an I/O error occurs while writing an intermediate file.
DirectoryException - If an error occurs while processing the entry.

stopProcessing

void stopProcessing()
                    throws java.io.IOException
Indicates that there will be no more updates.

Throws:
java.io.IOException - If an I/O error occurs while writing an intermediate file.