org.elasticsearch.index.store.fs
Class SimpleFsStore

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
              extended by org.elasticsearch.index.store.fs.SimpleFsStore
All Implemented Interfaces:
IndexShardComponent, Store

public class SimpleFsStore
extends FsStore


Nested Class Summary
 
Nested classes/interfaces inherited from class org.elasticsearch.index.store.support.AbstractStore
AbstractStore.StoreDirectory
 
Field Summary
 
Fields inherited from class org.elasticsearch.index.store.fs.FsStore
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
SimpleFsStore(ShardId shardId, Settings indexSettings, IndexStore indexStore, ByteBufferCache byteBufferCache)
           
 
Method Summary
 org.apache.lucene.store.Directory directory()
          The Lucene Directory this store is using.
 org.apache.lucene.store.FSDirectory fsDirectory()
           
 boolean suggestUseCompoundFile()
          Returns true by default.
 
Methods inherited from class org.elasticsearch.index.store.fs.FsStore
buildLockFactory, buildSwitchDirectoryIfNeeded, doRenameFile, fullDelete
 
Methods inherited from class org.elasticsearch.index.store.support.AbstractStore
close, createOutputWithNoChecksum, deleteContent, estimateSize, list, metaData, readChecksums, renameFile, 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.shard.IndexShardComponent
indexSettings, shardId
 

Constructor Detail

SimpleFsStore

@Inject
public SimpleFsStore(ShardId shardId,
                            @IndexSettings
                            Settings indexSettings,
                            IndexStore indexStore,
                            ByteBufferCache byteBufferCache)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

fsDirectory

public org.apache.lucene.store.FSDirectory fsDirectory()
Specified by:
fsDirectory in class FsStore

directory

public org.apache.lucene.store.Directory directory()
Description copied from interface: Store
The Lucene Directory this store is using.


suggestUseCompoundFile

public boolean suggestUseCompoundFile()
Description copied from class: AbstractStore
Returns true by default.

Specified by:
suggestUseCompoundFile in interface Store
Overrides:
suggestUseCompoundFile in class AbstractStore