org.gcube.indexmanagement.storagehandling
Interface IndexReplicator


public interface IndexReplicator

Defines a set of operations that can be used to merge additions or deletions of delta files with an index.


Method Summary
 void clearIndex()
          Erases all the contents of the index
 void mergeAddition(java.io.File deltaFile, java.lang.String fileID, int documentCount)
          Merges a delta file addition with an index
 void mergeDeletion(java.io.File deltaFile, java.lang.String fileID, int documentCount)
          Merges a delta file deletion with an index
 

Method Detail

mergeAddition

void mergeAddition(java.io.File deltaFile,
                   java.lang.String fileID,
                   int documentCount)
                   throws IndexException
Merges a delta file addition with an index

Parameters:
deltaFile - the delta file to merge
fileID - the ID of the delta file
documentCount - the number of documents in the delta file
Throws:
IndexException

mergeDeletion

void mergeDeletion(java.io.File deltaFile,
                   java.lang.String fileID,
                   int documentCount)
                   throws IndexException
Merges a delta file deletion with an index

Parameters:
deltaFile - the delta file to delete
fileID - the ID of the delta file
documentCount - the number of documents in the delta file
Throws:
IndexException

clearIndex

void clearIndex()
                throws IndexException
Erases all the contents of the index

Throws:
IndexException