|
||||||||||
| 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.FSDirectoryStore
public class FSDirectoryStore
A directory store implemented using a file system. Uses Lucene FSDirectory.
| Field Summary | |
|---|---|
static String |
PROTOCOL
|
| Constructor Summary | |
|---|---|
FSDirectoryStore()
|
|
| Method Summary | |
|---|---|
void |
afterFailedCopyFrom(String subContext,
CopyFromHolder holder)
|
void |
afterSuccessfulCopyFrom(String subContext,
String subIndex,
CopyFromHolder holder)
|
CopyFromHolder |
beforeCopyFrom(String subContext,
String subIndex,
Directory dir)
|
protected String |
buildPath(String subContext,
String subIndex)
|
void |
cleanIndex(Directory dir,
String subContext,
String subIndex)
If applicable, cleans 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. |
protected String |
findIndexPath(String connection)
|
protected String |
getFSDirectoryClass()
|
Directory |
open(String subContext,
String subIndex)
Opens a new Directory for the given sub context and sub index. |
boolean |
suggestedUseCompoundFile()
By default, stores should not use compound file format. |
| Methods inherited from class org.compass.core.lucene.engine.store.AbstractDirectoryStore |
|---|
afterFailedCopyFrom, close, closeDirectory, indexExists, performScheduledTasks, registerEventListeners, requiresAsyncTransactionalContext, suggestedIndexDeletionPolicy, supportsConcurrentOperations |
| 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 FSDirectoryStore()
| Method Detail |
|---|
public void configure(CompassSettings settings)
throws CompassException
CompassConfigurable
configure in interface CompassConfigurablesettings - The settings for the configured object
CompassExceptionprotected String findIndexPath(String connection)
public Directory open(String subContext,
String subIndex)
throws SearchEngineException
DirectoryStoreDirectory for the given sub context and sub index.
open in interface DirectoryStoreSearchEngineException
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 CopyFromHolder beforeCopyFrom(String subContext,
String subIndex,
Directory dir)
throws SearchEngineException
beforeCopyFrom in interface DirectoryStorebeforeCopyFrom in class AbstractDirectoryStoreSearchEngineException
public void afterSuccessfulCopyFrom(String subContext,
String subIndex,
CopyFromHolder holder)
throws SearchEngineException
afterSuccessfulCopyFrom in interface DirectoryStoreafterSuccessfulCopyFrom in class AbstractDirectoryStoreSearchEngineException
public void afterFailedCopyFrom(String subContext,
CopyFromHolder holder)
throws SearchEngineException
SearchEngineException
protected String buildPath(String subContext,
String subIndex)
public boolean suggestedUseCompoundFile()
AbstractDirectoryStore
suggestedUseCompoundFile in interface DirectoryStoresuggestedUseCompoundFile in class AbstractDirectoryStoreprotected String getFSDirectoryClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||