org.elasticsearch.index.store.fs
Class FsStore

java.lang.Object
  extended by org.elasticsearch.index.shard.AbstractIndexShardComponent
      extended by org.elasticsearch.index.store.support.AbstractStore
          extended by org.elasticsearch.index.store.fs.FsStore
All Implemented Interfaces:
IndexShardComponent, Store
Direct Known Subclasses:
MmapFsStore, NioFsStore, SimpleFsStore

public abstract class FsStore
extends AbstractStore


Nested Class Summary
 
Nested classes/interfaces inherited from class org.elasticsearch.index.store.support.AbstractStore
AbstractStore.StoreDirectory
 
Field Summary
static boolean DEFAULT_SUGGEST_USE_COMPOUND_FILE
           
 
Fields inherited from class org.elasticsearch.index.store.support.AbstractStore
indexStore
 
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId
 
Constructor Summary
FsStore(ShardId shardId, Settings indexSettings, IndexStore indexStore)
           
 
Method Summary
protected  org.apache.lucene.store.LockFactory buildLockFactory()
           
protected  Tuple<SwitchDirectory,java.lang.Boolean> buildSwitchDirectoryIfNeeded(org.apache.lucene.store.Directory fsDirectory, ByteBufferCache byteBufferCache)
           
protected  void doRenameFile(java.lang.String from, java.lang.String to)
           
abstract  org.apache.lucene.store.FSDirectory fsDirectory()
           
 void fullDelete()
          Deletes the store completely.
 
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 org.elasticsearch.index.shard.AbstractIndexShardComponent
indexSettings, managementGroupName, nodeName, shardId
 
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
 
Methods inherited from interface org.elasticsearch.index.shard.IndexShardComponent
indexSettings, shardId
 

Field Detail

DEFAULT_SUGGEST_USE_COMPOUND_FILE

public static final boolean DEFAULT_SUGGEST_USE_COMPOUND_FILE
See Also:
Constant Field Values
Constructor Detail

FsStore

public FsStore(ShardId shardId,
               @IndexSettings
               Settings indexSettings,
               IndexStore indexStore)
Method Detail

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)