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.
 boolean canDeleteUnallocated(ShardId shardId)
          Returns true if this shard is allocated on this node.
 void deleteUnallocated(ShardId shardId)
          Deletes this shard store since its no longer allocated.
 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.


canDeleteUnallocated

boolean canDeleteUnallocated(ShardId shardId)
Returns true if this shard is allocated on this node. Allocated means that it has storage files that can be deleted using deleteUnallocated(org.elasticsearch.index.shard.ShardId).


deleteUnallocated

void deleteUnallocated(ShardId shardId)
                       throws java.io.IOException
Deletes this shard store since its no longer allocated.

Throws:
java.io.IOException