|
||||||||||
| 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
org.compass.core.lucene.engine.store.JdbcDirectoryStore
public class JdbcDirectoryStore
| Field Summary | |
|---|---|
static String |
PROTOCOL
|
| Constructor Summary | |
|---|---|
JdbcDirectoryStore()
|
|
| Method Summary | |
|---|---|
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 |
configure(CompassSettings settings)
Configure using the given settings. |
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 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)
|
boolean |
requiresAsyncTransactionalContext()
The Jdbc store does require transactional context when executing async operations. |
boolean |
supportsConcurrentOperations()
Jdbc storeage should not support concurrent operations on the index within a single session (such as concurrent commits on different sub indexes). |
| Methods inherited from class org.compass.core.lucene.engine.store.AbstractDirectoryStore |
|---|
afterFailedCopyFrom, afterSuccessfulCopyFrom, closeDirectory, suggestedIndexDeletionPolicy, suggestedUseCompoundFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROTOCOL
| Constructor Detail |
|---|
public JdbcDirectoryStore()
| Method Detail |
|---|
public boolean supportsConcurrentOperations()
supportsConcurrentOperations in interface DirectoryStoresupportsConcurrentOperations in class AbstractDirectoryStore
public void configure(CompassSettings settings)
throws CompassException
CompassConfigurable
configure in interface CompassConfigurablesettings - The settings for the configured object
CompassException
public Directory open(String subContext,
String subIndex)
throws SearchEngineException
DirectoryStoreDirectory for the given sub context and sub index.
open 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 DirectoryStoreindexExists in class AbstractDirectoryStoreSearchEngineException
public void deleteIndex(Directory dir,
String subContext,
String subIndex)
throws SearchEngineException
DirectoryStore
deleteIndex in interface DirectoryStoredeleteIndex in class AbstractDirectoryStoreSearchEngineException
public void cleanIndex(Directory dir,
String subContext,
String subIndex)
throws SearchEngineException
DirectoryStore
cleanIndex in interface DirectoryStorecleanIndex in class AbstractDirectoryStoreSearchEngineException
public void performScheduledTasks(Directory dir,
String subContext,
String subIndex)
throws SearchEngineException
DirectoryStore
performScheduledTasks in interface DirectoryStoreperformScheduledTasks in class AbstractDirectoryStoreSearchEngineException
public CopyFromHolder beforeCopyFrom(String subContext,
String subIndex,
Directory dir)
throws SearchEngineException
beforeCopyFrom in interface DirectoryStorebeforeCopyFrom in class AbstractDirectoryStoreSearchEngineException
public void registerEventListeners(SearchEngine searchEngine,
SearchEngineEventManager eventManager)
registerEventListeners in interface DirectoryStoreregisterEventListeners in class AbstractDirectoryStorepublic void close()
DirectoryStore
close in interface DirectoryStoreclose in class AbstractDirectoryStorepublic boolean requiresAsyncTransactionalContext()
requiresAsyncTransactionalContext in interface DirectoryStorerequiresAsyncTransactionalContext in class AbstractDirectoryStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||