Interface IndexStorePlugin.DirectoryFactory

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

public static interface IndexStorePlugin.DirectoryFactory
An interface that describes how to create a new directory instance per shard.
  • Method Summary

    Modifier and Type Method Description newDirectory​(IndexSettings indexSettings, ShardPath shardPath)
    Creates a new directory per shard.
  • Method Details

    • newDirectory newDirectory​(IndexSettings indexSettings, ShardPath shardPath) throws
      Creates a new directory per shard. This method is called once per shard on shard creation.
      indexSettings - the shards index settings
      shardPath - the path the shard is using
      a new lucene directory instance
      Throws: - if an IOException occurs while opening the directory