|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IIndexer
Generic interface for a text indexer. Currently there is only one implementation (Lucene).
| Method Summary | |
|---|---|
void |
clear()
Clears the contents of the index. |
void |
close()
Cleans up the indexer, freeing resources. |
boolean |
index(int id,
java.lang.Object object)
Adds the object to the index. |
void |
initialize(java.util.Properties properties)
Initializes the indexer with a properties object. |
void |
postIndex(int id)
Called after indexing of a set of statements is complete. |
void |
postRemove(int id)
Called after removing a set of statements is complete. |
int |
preIndex()
Prepares the indexer for calls to index(). |
int |
preRemove()
Prepares the indexer for calls to remove(). |
int |
rebuild(java.lang.Object seedObject)
Rebuilds the index given the seed object. |
void |
remove(int id,
java.lang.Object object)
Removes the object from the index. |
| Method Detail |
|---|
void initialize(java.util.Properties properties)
throws IndexerException
properties - configuration for the indexer, usually comes from a .properties file
IndexerException - if there were errors initializing the indexer
int preIndex()
throws IndexerException
IndexerException
void postIndex(int id)
throws IndexerException
id - id of the indexer, generated by preIndex()
IndexerException
boolean index(int id,
java.lang.Object object)
throws IndexerException
id - id of the indexer, generated by preIndex()object - object to add to the index.
IndexerException
int preRemove()
throws IndexerException
IndexerException
void postRemove(int id)
throws IndexerException
id - id of the indexer, generated by preRemove()
IndexerException
void remove(int id,
java.lang.Object object)
throws IndexerException
id - id of the indexer, generated by preIndex()object - object to remove from the index.
IndexerException
void clear()
throws IndexerException
IndexerException
void close()
throws IndexerException
IndexerException
int rebuild(java.lang.Object seedObject)
throws IndexerException
seedObject - object used to rebuild the entire index
IndexerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||