public interface IndexGenerator
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Deletes inserted rowsets since last
commit() |
void |
close()
Frees any resources used for updating indexes if any.
|
void |
closeIndex()
Closes the index committing any uncommitted insertions
|
void |
commit()
Commits inserted rowsets
|
void |
createIndex(String indexName,
FullTextIndexType indexType,
boolean forceCreate)
Creates a new index
|
File |
deleteDocuments(String[] documentIDs)
Deletes the listed documents both from the local storage and the main
index
|
int |
deleteDocumentsLocally(String[] documentIDs)
Deletes the listed documents from the local storage
|
void |
deleteIndex()
Deletes the entire index with all it's inserted rowsets.
|
long |
getCommittedFileSize()
Returns the size of the committed files
|
long |
getIndexFileSize()
Shows the current file size of the index
|
long |
getUnCommittedFileSize()
Returns the size of the uncommitted files
|
int |
insertRowSet(String rowset)
Inserts rowset of supported a supported indexType.
|
int |
mergeDeletionFile(File deletionFile)
Deletes the documents from the file from the index
|
int |
mergeIndex(File inputIndex)
Merges the named index into the open index
|
void |
openIndex(String indexName)
Opens the index for insertion of rowsets
|
void |
setIndexType(FullTextIndexType idxType)
Updates the Index' state object
|
int insertRowSet(String rowset) throws IndexException
rowset - xml that contain data to insertIndexException - -
an error inserting the ROWSETint deleteDocumentsLocally(String[] documentIDs) throws IndexException
documentIDs - -
an array of the IDs of the documents to deleteIndexException - -
an error deleting documentsFile deleteDocuments(String[] documentIDs) throws IndexException
documentIDs - -
an array of the IDs of the documents to deleteIndexException - -
an error deleting documentsvoid commit()
throws IndexException
IndexException - -
an error committingvoid abort()
throws IndexException
commit()IndexException - -
an error abortinglong getCommittedFileSize()
throws IndexException
IndexException - -
an error getting the fileSizelong getUnCommittedFileSize()
throws IndexException
IndexException - -
an error getting the fileSizevoid createIndex(String indexName, FullTextIndexType indexType, boolean forceCreate) throws IndexException
indexName - -
name of the indexcollectionID - -
the collectionID of the index to createindexType - -
the IndexType of the index to createIndexException - -
an error creating the index to createvoid deleteIndex()
throws IndexException
Warning: there is no undelete method.
IndexException - -
an error deleting documentsvoid openIndex(String indexName) throws IndexException
indexName - name of the indexIndexException - -
an error opening the indexvoid setIndexType(FullTextIndexType idxType) throws IndexException
IndexException - -
an error setting the indexTypelong getIndexFileSize()
throws IndexException
IndexException - -
an error deleting documentsint mergeIndex(File inputIndex) throws IndexException
inputIndexName - name of the input indexIndexException - -
an merging the indexint mergeDeletionFile(File deletionFile) throws IndexException
deletionFile - a file identifying the documents to deleteIndexException - -
an error merging the deletion filevoid closeIndex()
throws IndexException
IndexException - -
an error closing the Indexvoid close()
throws IndexException
IndexException - -
an error closing the IndexGeneratorCopyright © 2014. All Rights Reserved.