|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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(java.lang.String field,
java.lang.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 java.io.IOException
IndexerIF
index
in interface IndexerIF
java.io.IOException
public int delete(java.lang.String field, java.lang.String value) throws java.io.IOException
IndexerIF
delete
in interface IndexerIF
java.io.IOException
public void flush() throws java.io.IOException
IndexerIF
flush
in interface IndexerIF
java.io.IOException
public void delete() throws java.io.IOException
IndexerIF
delete
in interface IndexerIF
java.io.IOException
public void close() throws java.io.IOException
IndexerIF
close
in interface IndexerIF
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |