org.elasticsearch.index.store.fs
Class FsStore
java.lang.Object
org.elasticsearch.index.shard.AbstractIndexShardComponent
org.elasticsearch.index.store.support.AbstractStore
org.elasticsearch.index.store.fs.FsStore
- All Implemented Interfaces:
- IndexShardComponent, Store
- Direct Known Subclasses:
- MmapFsStore, NioFsStore, SimpleFsStore
public abstract class FsStore
- extends AbstractStore
Methods inherited from class org.elasticsearch.index.store.support.AbstractStore |
close, createOutputWithNoChecksum, deleteContent, estimateSize, list, metaData, readChecksums, renameFile, suggestUseCompoundFile, wrapDirectory, writeChecksum, writeChecksums, writeChecksums |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.elasticsearch.index.store.Store |
directory |
DEFAULT_SUGGEST_USE_COMPOUND_FILE
public static final boolean DEFAULT_SUGGEST_USE_COMPOUND_FILE
- See Also:
- Constant Field Values
FsStore
public FsStore(ShardId shardId,
@IndexSettings
Settings indexSettings,
IndexStore indexStore)
fullDelete
public void fullDelete()
throws java.io.IOException
- Description copied from interface:
Store
- Deletes the store completely. For example, in FS ones, also deletes the parent
directory.
- Specified by:
fullDelete
in interface Store
- Overrides:
fullDelete
in class AbstractStore
- Throws:
java.io.IOException
doRenameFile
protected void doRenameFile(java.lang.String from,
java.lang.String to)
throws java.io.IOException
- Specified by:
doRenameFile
in class AbstractStore
- Throws:
java.io.IOException
fsDirectory
public abstract org.apache.lucene.store.FSDirectory fsDirectory()
buildLockFactory
protected org.apache.lucene.store.LockFactory buildLockFactory()
throws java.io.IOException
- Throws:
java.io.IOException
buildSwitchDirectoryIfNeeded
protected Tuple<SwitchDirectory,java.lang.Boolean> buildSwitchDirectoryIfNeeded(org.apache.lucene.store.Directory fsDirectory,
ByteBufferCache byteBufferCache)