Class LocalFileSystemDirectoryProvider
- java.lang.Object
-
- org.hibernate.search.backend.lucene.lowlevel.directory.impl.LocalFileSystemDirectoryProvider
-
- All Implemented Interfaces:
DirectoryProvider
public class LocalFileSystemDirectoryProvider extends Object implements DirectoryProvider
-
-
Constructor Summary
Constructors Constructor Description LocalFileSystemDirectoryProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectoryHoldercreateDirectoryHolder(DirectoryCreationContext context)Creates aDirectoryHolderfor a given name, but do not allocate resources yet (wait untilDirectoryHolder.start()is called).
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
createDirectoryHolder
public DirectoryHolder createDirectoryHolder(DirectoryCreationContext context)
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
-
-