|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.search.store.FSDirectoryProvider
public class FSDirectoryProvider
Use a Lucene FSDirectory
. The base directory is represented by the property hibernate.search.default.indexBase
or hibernate.search.<index>.indexBase. The former defines the default base directory for all indexes whereas the
latter allows to override the base directory on a per index basis. <index> has to be replaced with the fully qualified
classname of the indexed class or the value of the index property of the @Indexed
annotation.
The actual index files are then created in <indexBase>/<index name>, <index name> is
per default the name of the indexed entity, or the value of the index property of the @Indexed
or can be specified
as property in the configuration file using hibernate.search.<index>.indexName.
Constructor Summary | |
---|---|
FSDirectoryProvider()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
org.apache.lucene.store.FSDirectory |
getDirectory()
Returns an initialized Lucene Directory. |
int |
hashCode()
|
void |
initialize(java.lang.String directoryProviderName,
java.util.Properties properties,
SearchFactoryImplementor searchFactoryImplementor)
get the information to initialize the directory and build its hashCode/equals method |
void |
start()
Executed after initialize, this method set up the heavy process of starting up the DirectoryProvider IO processing as well as background processing are expected to be set up here |
void |
stop()
Executed when the search factory is closed. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FSDirectoryProvider()
Method Detail |
---|
public void initialize(java.lang.String directoryProviderName, java.util.Properties properties, SearchFactoryImplementor searchFactoryImplementor)
DirectoryProvider
initialize
in interface DirectoryProvider<org.apache.lucene.store.FSDirectory>
public void start()
DirectoryProvider
start
in interface DirectoryProvider<org.apache.lucene.store.FSDirectory>
public void stop()
DirectoryProvider
stop
in interface DirectoryProvider<org.apache.lucene.store.FSDirectory>
public org.apache.lucene.store.FSDirectory getDirectory()
DirectoryProvider
getDirectory
in interface DirectoryProvider<org.apache.lucene.store.FSDirectory>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |