Class LocalHeapDirectoryProvider
java.lang.Object
org.hibernate.search.backend.lucene.lowlevel.directory.impl.LocalHeapDirectoryProvider
- All Implemented Interfaces:
DirectoryProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates aDirectoryHolderfor a given name, but do not allocate resources yet (wait untilDirectoryHolder.start()is called).
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
LocalHeapDirectoryProvider
public LocalHeapDirectoryProvider()
-
-
Method Details
-
createDirectoryHolder
Description copied from interface:DirectoryProviderCreates aDirectoryHolderfor a given name, but do not allocate resources yet (wait untilDirectoryHolder.start()is called).The provided index names are raw and do not take into account the limitations of the internal representation of indexes. If some characters cannot be used in a given
DirectoryProvider, this provider is expected to escape characters as necessary using an encoding scheme assigning a unique representation to each index name, so as to avoid two index names to be encoded into identical internal representations. Lower-casing the index name, for example, is not an acceptable encoding scheme, as two index names differing only in case could end up using the same directory.- Specified by:
createDirectoryHolderin interfaceDirectoryProvider- Parameters:
context- The creation context, giving access to configuration and environment.- Returns:
- The directory holder to use for that index name
-