Module org.elasticsearch.server
Package org.elasticsearch.index
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.
Directory
wrappers allow to apply a function to the Lucene directory instances
created by IndexStorePlugin.DirectoryFactory
.-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.store.Directory
wrap
(org.apache.lucene.store.Directory directory, ShardRouting shardRouting) Wrap a givenDirectory
-
Method Details
-
wrap
org.apache.lucene.store.Directory wrap(org.apache.lucene.store.Directory directory, @Nullable ShardRouting shardRouting) throws IOException Wrap a givenDirectory
- Parameters:
directory
- theDirectory
to wrapshardRouting
- theShardRouting
associated with theDirectory
ornull
is unknown- Returns:
- a
Directory
- Throws:
IOException
-