Class LocalHeapDirectoryProvider

java.lang.Object
org.hibernate.search.backend.lucene.lowlevel.directory.impl.LocalHeapDirectoryProvider
All Implemented Interfaces:
DirectoryProvider

public class LocalHeapDirectoryProvider extends Object implements DirectoryProvider
  • Field Details

  • Constructor Details

    • LocalHeapDirectoryProvider

      public LocalHeapDirectoryProvider()
  • Method Details

    • createDirectoryHolder

      public DirectoryHolder createDirectoryHolder(DirectoryCreationContext context)
      Description copied from interface: DirectoryProvider
      Creates a DirectoryHolder for a given name, but do not allocate resources yet (wait until DirectoryHolder.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:
      createDirectoryHolder in interface DirectoryProvider
      Parameters:
      context - The creation context, giving access to configuration and environment.
      Returns:
      The directory holder to use for that index name