|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.indexer.lucene.LuceneIndexerBase
org.openanzo.model.indexer.lucene.ModelIndexer
public class ModelIndexer
Indexer for Anzo models based on Lucene.
| Constructor Summary | |
|---|---|
ModelIndexer()
|
|
| Method Summary | |
|---|---|
static org.apache.lucene.document.Document |
createDocument(StatementWrapper statementWrapper)
Create a new IndexDocument for the statement provided |
boolean |
index(int id,
java.lang.Object obj)
Adds the object to the index. |
int |
rebuild(java.lang.Object seedObject)
Rebuilds the index given the seed object. |
void |
remove(int id,
java.lang.Object obj)
Removes the object from the index. |
| Methods inherited from class org.openanzo.indexer.lucene.LuceneIndexerBase |
|---|
clear, close, initialize, initialize, postIndex, postRemove, preIndex, preRemove |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelIndexer()
| Method Detail |
|---|
public boolean index(int id,
java.lang.Object obj)
throws IndexerException
IIndexer
index in interface IIndexerindex in class LuceneIndexerBaseid - id of the indexer, generated by preIndex()obj - object to add to the index.
IndexerException
public void remove(int id,
java.lang.Object obj)
throws IndexerException
IIndexer
remove in interface IIndexerremove in class LuceneIndexerBaseid - id of the indexer, generated by preIndex()obj - object to remove from the index.
IndexerExceptionpublic static org.apache.lucene.document.Document createDocument(StatementWrapper statementWrapper)
statementWrapper - index wrapper around an Anzo Statement
public int rebuild(java.lang.Object seedObject)
throws IndexerException
IIndexer
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 | |||||||||