org.elasticsearch.index.store
Interface Store<T extends org.apache.lucene.store.Directory>

All Superinterfaces:
IndexShardComponent
All Known Implementing Classes:
AbstractFsStore, AbstractStore, ByteBufferStore, HeapStore, MmapFsStore, NioFsStore, RamStore, SimpleFsStore

public interface Store<T extends org.apache.lucene.store.Directory>
extends IndexShardComponent


Method Summary
 void close()
          Close the store.
 void deleteContent()
          Just deletes the content of the store.
 T directory()
          The Lucene Directory this store is using.
 SizeValue estimateSize()
          The estimated size this store is using.
 void fullDelete()
          Deletes the store completely.
 boolean suggestUseCompoundFile()
          The store can suggest the best setting for compound file the MergePolicy will use.
 
Methods inherited from interface org.elasticsearch.index.shard.IndexShardComponent
indexSettings, shardId
 

Method Detail

directory

T directory()
The Lucene Directory this store is using.


deleteContent

void deleteContent()
                   throws java.io.IOException
Just deletes the content of the store.

Throws:
java.io.IOException

fullDelete

void fullDelete()
                throws java.io.IOException
Deletes the store completely. For example, in FS ones, also deletes the parent directory.

Throws:
java.io.IOException

estimateSize

SizeValue estimateSize()
                       throws java.io.IOException
The estimated size this store is using.

Throws:
java.io.IOException

suggestUseCompoundFile

boolean suggestUseCompoundFile()
The store can suggest the best setting for compound file the MergePolicy will use.


close

void close()
           throws java.io.IOException
Close the store.

Throws:
java.io.IOException