org.elasticsearch.index.store.fs
Class MmapFsStore

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.MmapFsStore
All Implemented Interfaces:
IndexShardComponent, Store

public class MmapFsStore
extends FsStore


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
MmapFsStore(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, fullDelete
 
Methods inherited from class org.elasticsearch.index.store.support.AbstractStore
close, createOutputWithNoChecksum, deleteContent, estimateSize, list, metaData, readChecksums, wrapDirectory, writeChecksum, 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

MmapFsStore

@Inject
public MmapFsStore(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