org.elasticsearch.index.store
Interface IndexStore

All Superinterfaces:
IndexComponent
All Known Implementing Classes:
AbstractIndexStore, ByteBufferIndexStore, FsIndexStore, MmapFsIndexStore, NioFsIndexStore, RamIndexStore, SimpleFsIndexStore

public interface IndexStore
extends IndexComponent

Index store is an index level information of the Store each shard will use.


Method Summary
 ByteSizeValue backingStoreFreeSpace()
          Returns the backing store free space.
 ByteSizeValue backingStoreTotalSpace()
          Returns the backing store total space.
 void deleteUnallocated(ShardId shardId)
           
 boolean persistent()
          Is the store a persistent store that can survive full restarts.
 java.lang.Class<? extends Store> shardStoreClass()
          The shard store class that should be used for each shard.
 
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
 

Method Detail

persistent

boolean persistent()
Is the store a persistent store that can survive full restarts.


shardStoreClass

java.lang.Class<? extends Store> shardStoreClass()
The shard store class that should be used for each shard.


backingStoreTotalSpace

ByteSizeValue backingStoreTotalSpace()
Returns the backing store total space. Return -1 if not available.


backingStoreFreeSpace

ByteSizeValue backingStoreFreeSpace()
Returns the backing store free space. Return -1 if not available.


deleteUnallocated

void deleteUnallocated(ShardId shardId)
                       throws java.io.IOException
Throws:
java.io.IOException