Class NRTCachingDirectoryFactory

All Implemented Interfaces:
Closeable, AutoCloseable, NamedListInitializedPlugin

public class NRTCachingDirectoryFactory extends StandardDirectoryFactory
Factory to instantiate NRTCachingDirectory
  • Field Details

    • DEFAULT_MAX_MERGE_SIZE_MB

      public static final int DEFAULT_MAX_MERGE_SIZE_MB
      See Also:
    • DEFAULT_MAX_CACHED_MB

      public static final int DEFAULT_MAX_CACHED_MB
      See Also:
  • Constructor Details

    • NRTCachingDirectoryFactory

      public NRTCachingDirectoryFactory()
  • Method Details

    • init

      public void init(org.apache.solr.common.util.NamedList<?> args)
      Description copied from interface: NamedListInitializedPlugin
      init will be called just once, immediately after creation.

      Source of the initialization arguments will typically be solrconfig.xml, but will ultimately depends on the plugin itself

      Specified by:
      init in interface NamedListInitializedPlugin
      Overrides:
      init in class CachingDirectoryFactory
      Parameters:
      args - non-null list of initialization parameters (may be empty)
    • create

      protected org.apache.lucene.store.Directory create(String path, org.apache.lucene.store.LockFactory lockFactory) throws IOException
      Description copied from class: DirectoryFactory
      Creates a new Directory for a given path.
      Overrides:
      create in class StandardDirectoryFactory
      Throws:
      IOException - If there is a low-level I/O error.