|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IndexGenerator
Interface for Index Generating Wrapper Classes.
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
int insertRowSet(String rowset)
throws IndexException
rowset - xml that contain data to insert
IndexException - -
an error inserting the ROWSET
int deleteDocumentsLocally(String[] documentIDs)
throws IndexException
documentIDs - -
an array of the IDs of the documents to delete
IndexException - -
an error deleting documents
File deleteDocuments(String[] documentIDs)
throws IndexException
documentIDs - -
an array of the IDs of the documents to delete
IndexException - -
an error deleting documents
void commit()
throws IndexException
IndexException - -
an error committing
void abort()
throws IndexException
commit()
IndexException - -
an error aborting
long getCommittedFileSize()
throws IndexException
IndexException - -
an error getting the fileSize
long getUnCommittedFileSize()
throws IndexException
IndexException - -
an error getting the fileSize
void 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 create
IndexException - -
an error creating the index to create
void deleteIndex()
throws IndexException
Warning: there is no undelete method.
IndexException - -
an error deleting documents
void openIndex(String indexName)
throws IndexException
indexName - name of the index
IndexException - -
an error opening the index
void setIndexType(FullTextIndexType idxType)
throws IndexException
IndexException - -
an error setting the indexType
long getIndexFileSize()
throws IndexException
IndexException - -
an error deleting documents
int mergeIndex(File inputIndex)
throws IndexException
inputIndexName - name of the input index
IndexException - -
an merging the index
int mergeDeletionFile(File deletionFile)
throws IndexException
deletionFile - a file identifying the documents to delete
IndexException - -
an error merging the deletion file
void closeIndex()
throws IndexException
IndexException - -
an error closing the Index
void close()
throws IndexException
IndexException - -
an error closing the IndexGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||