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<T>
          extended by org.elasticsearch.index.store.fs.AbstractFsStore<org.apache.lucene.store.Directory>
              extended by org.elasticsearch.index.store.fs.MmapFsStore
All Implemented Interfaces:
IndexShardComponent, Store<org.apache.lucene.store.Directory>

public class MmapFsStore
extends AbstractFsStore<org.apache.lucene.store.Directory>


Field Summary
 
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId
 
Constructor Summary
MmapFsStore(ShardId shardId, Settings indexSettings, Environment environment, java.lang.String localNodeId)
           
 
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.AbstractFsStore
buildSwitchDirectoryIfNeeded, fullDelete
 
Methods inherited from class org.elasticsearch.index.store.support.AbstractStore
close, deleteContent, estimateSize
 
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,
                          Environment environment,
                          @LocalNodeId
                          java.lang.String localNodeId)
            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

fsDirectory

public org.apache.lucene.store.FSDirectory fsDirectory()
Specified by:
fsDirectory in class AbstractFsStore<org.apache.lucene.store.Directory>

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<org.apache.lucene.store.Directory>
Overrides:
suggestUseCompoundFile in class AbstractStore<org.apache.lucene.store.Directory>