org.elasticsearch.index.store.ram
Class RamStore

java.lang.Object
  extended by org.elasticsearch.index.shard.AbstractIndexShardComponent
      extended by org.elasticsearch.index.store.support.AbstractStore
          extended by org.elasticsearch.index.store.ram.RamStore
All Implemented Interfaces:
IndexShardComponent, Store

public class RamStore
extends AbstractStore


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.support.AbstractStore
indexStore
 
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId
 
Constructor Summary
RamStore(ShardId shardId, Settings indexSettings, IndexStore indexStore)
           
 
Method Summary
 org.apache.lucene.store.Directory directory()
          The Lucene Directory this store is using.
protected  void doRenameFile(java.lang.String from, java.lang.String to)
           
 boolean suggestUseCompoundFile()
          Its better to not use the compound format when using the Ram store.
 
Methods inherited from class org.elasticsearch.index.store.support.AbstractStore
close, createOutputWithNoChecksum, deleteContent, estimateSize, fullDelete, isChecksum, 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

RamStore

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

directory

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


suggestUseCompoundFile

public boolean suggestUseCompoundFile()
Its better to not use the compound format when using the Ram store.

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

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