public abstract class DirectoryService extends AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId| Modifier | Constructor and Description |
|---|---|
protected |
DirectoryService(ShardId shardId,
Settings indexSettings) |
| Modifier and Type | Method and Description |
|---|---|
abstract org.apache.lucene.store.Directory[] |
build() |
org.apache.lucene.store.Directory |
newFromDistributor(Distributor distributor)
Creates a new Directory from the given distributor.
|
abstract void |
renameFile(org.apache.lucene.store.Directory dir,
String from,
String to) |
abstract long |
throttleTimeInNanos() |
indexSettings, nodeName, shardIdprotected DirectoryService(ShardId shardId, @IndexSettings Settings indexSettings)
public abstract void renameFile(org.apache.lucene.store.Directory dir,
String from,
String to)
throws IOException
IOExceptionpublic abstract org.apache.lucene.store.Directory[] build()
throws IOException
IOExceptionpublic abstract long throttleTimeInNanos()
public org.apache.lucene.store.Directory newFromDistributor(Distributor distributor) throws IOException
DistributorDirectory
if there is more than one data path in the distributor.IOExceptionCopyright © 2009–2016. All rights reserved.