Package org.elasticsearch.plugins
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.
An interface that describes how to create a new directory instance per shard.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.store.Directory
newDirectory(IndexSettings indexSettings, ShardPath shardPath)
Creates a new directory per shard.
-
Method Details
-
newDirectory
org.apache.lucene.store.Directory newDirectory(IndexSettings indexSettings, ShardPath shardPath) throws IOExceptionCreates a new directory per shard. This method is called once per shard on shard creation.- Parameters:
indexSettings
- the shards index settingsshardPath
- the path the shard is using- Returns:
- a new lucene directory instance
- Throws:
IOException
- if an IOException occurs while opening the directory
-