|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.lucene.engine.store.AbstractDirectoryStore
public abstract class AbstractDirectoryStore
Base class for different DirectoryStore implementations.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
AbstractDirectoryStore()
|
|
| 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. |
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)
|
boolean |
requiresAsyncTransactionalContext()
By default, stores do not require transactional context. |
String |
suggestedIndexDeletionPolicy()
By default, return null which means let globabl settings to decide what the default
index deletion policy should be. |
boolean |
suggestedUseCompoundFile()
By default, stores should not use compound file format. |
boolean |
supportsConcurrentOperations()
By defualt, stores support concurrent operations (return true). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.compass.core.lucene.engine.store.DirectoryStore |
|---|
open |
| Field Detail |
|---|
protected final transient org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public AbstractDirectoryStore()
| Method Detail |
|---|
public void closeDirectory(Directory dir,
String subContext,
String subIndex)
throws SearchEngineException
DirectoryStore
closeDirectory in interface DirectoryStoreSearchEngineException
public Boolean indexExists(Directory dir)
throws SearchEngineException
DirectoryStoretrue if the inex exists, false if it does not. Can return
null which then will cause the default checking to apply.
indexExists in interface DirectoryStoreSearchEngineException
public void deleteIndex(Directory dir,
String subContext,
String subIndex)
throws SearchEngineException
DirectoryStore
deleteIndex in interface DirectoryStoreSearchEngineException
public void cleanIndex(Directory dir,
String subContext,
String subIndex)
throws SearchEngineException
DirectoryStore
cleanIndex in interface DirectoryStoreSearchEngineException
public void performScheduledTasks(Directory dir,
String subContext,
String subIndex)
throws SearchEngineException
DirectoryStore
performScheduledTasks in interface DirectoryStoreSearchEngineException
public void registerEventListeners(SearchEngine searchEngine,
SearchEngineEventManager eventManager)
registerEventListeners in interface DirectoryStore
public CopyFromHolder beforeCopyFrom(String subContext,
String subIndex,
Directory dir)
throws SearchEngineException
beforeCopyFrom in interface DirectoryStoreSearchEngineException
public void afterSuccessfulCopyFrom(String subContext,
String subIndex,
CopyFromHolder holder)
throws SearchEngineException
afterSuccessfulCopyFrom in interface DirectoryStoreSearchEngineException
public void afterFailedCopyFrom(String subContext,
String subIndex,
CopyFromHolder holder)
throws SearchEngineException
afterFailedCopyFrom in interface DirectoryStoreSearchEngineExceptionpublic void close()
DirectoryStore
close in interface DirectoryStorepublic boolean requiresAsyncTransactionalContext()
requiresAsyncTransactionalContext in interface DirectoryStorepublic boolean suggestedUseCompoundFile()
suggestedUseCompoundFile in interface DirectoryStorepublic boolean supportsConcurrentOperations()
true).
supportsConcurrentOperations in interface DirectoryStorepublic String suggestedIndexDeletionPolicy()
null which means let globabl settings to decide what the default
index deletion policy should be.
suggestedIndexDeletionPolicy in interface DirectoryStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||