Package org.hibernate.search.store
Class RAMDirectoryProvider
java.lang.Object
org.hibernate.search.store.RAMDirectoryProvider
- All Implemented Interfaces:
DirectoryProvider<RAMDirectory>
Use a Lucene RAMDirectory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns an initialized Lucene Directory.inthashCode()voidinitialize(String directoryProviderName, Properties properties, BuildContext context) get the information to initialize the directory and build its hashCode/equals methodvoidstart()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 herevoidstop()Executed when the search factory is closed.
-
Constructor Details
-
RAMDirectoryProvider
public RAMDirectoryProvider()
-
-
Method Details
-
initialize
Description copied from interface:DirectoryProviderget the information to initialize the directory and build its hashCode/equals method- Specified by:
initializein interfaceDirectoryProvider<RAMDirectory>
-
start
public void start()Description copied from interface:DirectoryProviderExecuted 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- Specified by:
startin interfaceDirectoryProvider<RAMDirectory>
-
getDirectory
Description copied from interface:DirectoryProviderReturns an initialized Lucene Directory. This method call must be threadsafe- Specified by:
getDirectoryin interfaceDirectoryProvider<RAMDirectory>
-
stop
public void stop()Description copied from interface:DirectoryProviderExecuted when the search factory is closed. This method should stop any background process as well as releasing any resource. This method should avoid raising exceptions and log potential errors instead- Specified by:
stopin interfaceDirectoryProvider<RAMDirectory>
-
equals
-
hashCode
public int hashCode()
-