|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.infoset.fulltext.utils.DefaultIndexerManager
public class DefaultIndexerManager
INTERNAL: A standalone index manager that performs document processing and indexing processes in the current thread. No other threads are used.
Warning: The delete() method is not supported. Call the method on the nested indexer instead.
Field Summary | |
---|---|
protected IndexerIF |
indexer
|
protected DocumentProcessorIF |
processor
|
Constructor Summary | |
---|---|
DefaultIndexerManager(IndexerIF indexer)
INTERNAL: Creates the manager and gives it the indexer used to do the actual indexing. |
Method Summary | |
---|---|
void |
close()
INTERNAL: Closes the indexer. |
void |
delete()
INTERNAL: Deletes the index. |
int |
delete(String field,
String value)
INTERNAL: Removes all documents with the specified field value from the index. |
void |
flush()
INTERNAL: Flushes all changes done to the index. |
DocumentProcessorIF |
getDocumentProcessor()
INTERNAL: Gets the document processor used by the indexer manager. |
IndexerIF |
getIndexer()
INTERNAL: Gets the nested indexer. |
void |
index(DocumentIF document)
INTERNAL: Indexes the specified document. |
void |
setDocumentProcessor(DocumentProcessorIF processor)
INTERNAL: Sets the document processor which is to be used by the indexer manager. |
void |
setIndexer(IndexerIF indexer)
INTERNAL: Sets the nested indexer that is to be used by the indexer manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IndexerIF indexer
protected DocumentProcessorIF processor
Constructor Detail |
---|
public DefaultIndexerManager(IndexerIF indexer)
Method Detail |
---|
public DocumentProcessorIF getDocumentProcessor()
public void setDocumentProcessor(DocumentProcessorIF processor)
public IndexerIF getIndexer()
public void setIndexer(IndexerIF indexer)
public void index(DocumentIF document) throws IOException
IndexerIF
index
in interface IndexerIF
IOException
public int delete(String field, String value) throws IOException
IndexerIF
delete
in interface IndexerIF
IOException
public void flush() throws IOException
IndexerIF
flush
in interface IndexerIF
IOException
public void delete() throws IOException
IndexerIF
delete
in interface IndexerIF
IOException
public void close() throws IOException
IndexerIF
close
in interface IndexerIF
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |