| org.compass.core.lucene.engine.store.DirectoryStore
All known Subclasses: org.compass.core.lucene.engine.store.AbstractDirectoryStore,
DirectoryStore | public interface DirectoryStore (Code) | | An abstraction on top of Lucene
org.apache.lucene.store.Directory handling.
author: kimchy |
Method Summary | |
void | afterFailedCopyFrom(String subContext, String subIndex, CopyFromHolder holder) | void | afterSuccessfulCopyFrom(String subContext, String subIndex, CopyFromHolder holder) | CopyFromHolder | beforeCopyFrom(String subContext, String subIndex, Directory dir) | void | cleanIndex(Directory dir, String subContext, String subIndex) If applicable, cleans the given directory. | void | close() Closes the given directory. | void | closeDirectory(Directory dir, String subContext, String subIndex) Closes the given directory. | void | deleteIndex(Directory dir, String subContext, String subIndex) If applicable, deletes the given directory. | Boolean | indexExists(Directory dir) Returns true if the inex exists, false if it does not. | Directory | open(String subContext, String subIndex) Opens a new
org.apache.lucene.store.Directory for the given sub context and sub index. | void | performScheduledTasks(Directory dir, String subContext, String subIndex) Perform any scheduled tasks that are needed on the given directory. | void | registerEventListeners(SearchEngine searchEngine, SearchEngineEventManager eventManager) |
cleanIndex | void cleanIndex(Directory dir, String subContext, String subIndex) throws SearchEngineException(Code) | | If applicable, cleans the given directory. Notes, this will be called right before the directory
will be closed. And then a create index will be done.
|
close | void close()(Code) | | Closes the given directory.
|
indexExists | Boolean indexExists(Directory dir) throws SearchEngineException(Code) | | Returns true if the inex exists, false if it does not. Can return
null which then will cause the default checking to apply.
|
performScheduledTasks | void performScheduledTasks(Directory dir, String subContext, String subIndex) throws SearchEngineException(Code) | | Perform any scheduled tasks that are needed on the given directory.
|
|
|