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 SummaryModifier and TypeMethodDescriptionorg.apache.lucene.store.DirectorynewDirectory(IndexSettings indexSettings, ShardPath shardPath)Creates a new directory per shard.
- 
Method Details- 
newDirectoryorg.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 settings
- shardPath- the path the shard is using
- Returns:
- a new lucene directory instance
- Throws:
- IOException- if an IOException occurs while opening the directory
 
 
-