Interface IndexModule.DirectoryWrapper

Enclosing class:
IndexModule
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface IndexModule.DirectoryWrapper
Directory wrappers allow to apply a function to the Lucene directory instances created by IndexStorePlugin.DirectoryFactory.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.store.Directory
    wrap(org.apache.lucene.store.Directory directory, ShardRouting shardRouting)
    Wrap a given Directory
  • Method Details

    • wrap

      org.apache.lucene.store.Directory wrap(org.apache.lucene.store.Directory directory, @Nullable ShardRouting shardRouting) throws IOException
      Wrap a given Directory
      Parameters:
      directory - the Directory to wrap
      shardRouting - the ShardRouting associated with the Directory or null is unknown
      Returns:
      a Directory
      Throws:
      IOException