Interface IndexStorePlugin.DirectoryFactory

  • All Known Implementing Classes:
    FsDirectoryFactory
    Enclosing interface:
    IndexStorePlugin
    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 IndexStorePlugin.DirectoryFactory
    An interface that describes how to create a new directory instance per shard.
    • Method Detail

      • newDirectory

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