org.elasticsearch.index.store.fs
Class AbstractFsStore<T extends org.apache.lucene.store.Directory>

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

public abstract class AbstractFsStore<T extends org.apache.lucene.store.Directory>
extends AbstractStore<T>


Field Summary
 
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId
 
Constructor Summary
AbstractFsStore(ShardId shardId, Settings indexSettings)
           
 
Method Summary
protected  SwitchDirectory buildSwitchDirectoryIfNeeded(org.apache.lucene.store.Directory fsDirectory)
           
abstract  org.apache.lucene.store.FSDirectory fsDirectory()
           
 void fullDelete()
          Deletes the store completely.
 
Methods inherited from class org.elasticsearch.index.store.support.AbstractStore
close, deleteContent, estimateSize, suggestUseCompoundFile
 
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
 

Constructor Detail

AbstractFsStore

public AbstractFsStore(ShardId shardId,
                       @IndexSettings
                       Settings indexSettings)
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<T extends org.apache.lucene.store.Directory>
Overrides:
fullDelete in class AbstractStore<T extends org.apache.lucene.store.Directory>
Throws:
java.io.IOException

fsDirectory

public abstract org.apache.lucene.store.FSDirectory fsDirectory()

buildSwitchDirectoryIfNeeded

protected SwitchDirectory buildSwitchDirectoryIfNeeded(org.apache.lucene.store.Directory fsDirectory)