org.elasticsearch.index.store
Class Store

java.lang.Object
  extended by org.elasticsearch.index.shard.AbstractIndexShardComponent
      extended by org.elasticsearch.index.store.Store
All Implemented Interfaces:
IndexShardComponent

public class Store
extends AbstractIndexShardComponent


Field Summary
 
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId
 
Constructor Summary
Store(ShardId shardId, Settings indexSettings, IndexStore indexStore, IndexSettingsService indexSettingsService, DirectoryService directoryService)
           
 
Method Summary
 void close()
           
 org.apache.lucene.store.IndexOutput createOutputRaw(String name)
          Creates a raw output, no checksum is computed, and no compression if enabled.
 void deleteContent()
           
 org.apache.lucene.store.Directory directory()
           
 ByteSizeValue estimateSize()
           
 void fullDelete()
           
 IndexStore indexStore()
           
static boolean isChecksum(String name)
           
 com.google.common.collect.ImmutableMap<String,StoreFileMetaData> list()
           
 StoreFileMetaData metaData(String name)
           
 org.apache.lucene.store.IndexInput openInputRaw(String name)
          Opened an index input in raw form, no decompression for example.
static Map<String,String> readChecksums(File[] locations)
           
 void renameFile(String from, String to)
           
 StoreStats stats()
           
 boolean suggestUseCompoundFile()
          Returns true by default.
 void writeChecksum(String name, String checksum)
           
 void writeChecksums()
           
 void writeChecksums(Map<String,String> checksums)
           
 
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
 

Constructor Detail

Store

@Inject
public Store(ShardId shardId,
                    @IndexSettings
                    Settings indexSettings,
                    IndexStore indexStore,
                    IndexSettingsService indexSettingsService,
                    DirectoryService directoryService)
      throws IOException
Throws:
IOException
Method Detail

isChecksum

public static final boolean isChecksum(String name)

indexStore

public IndexStore indexStore()

directory

public org.apache.lucene.store.Directory directory()

list

public com.google.common.collect.ImmutableMap<String,StoreFileMetaData> list()
                                                                      throws IOException
Throws:
IOException

metaData

public StoreFileMetaData metaData(String name)
                           throws IOException
Throws:
IOException

deleteContent

public void deleteContent()
                   throws IOException
Throws:
IOException

fullDelete

public void fullDelete()
                throws IOException
Throws:
IOException

stats

public StoreStats stats()
                 throws IOException
Throws:
IOException

estimateSize

public ByteSizeValue estimateSize()
                           throws IOException
Throws:
IOException

renameFile

public void renameFile(String from,
                       String to)
                throws IOException
Throws:
IOException

readChecksums

public static Map<String,String> readChecksums(File[] locations)
                                        throws IOException
Throws:
IOException

writeChecksums

public void writeChecksums()
                    throws IOException
Throws:
IOException

suggestUseCompoundFile

public boolean suggestUseCompoundFile()
Returns true by default.


close

public void close()
           throws IOException
Throws:
IOException

createOutputRaw

public org.apache.lucene.store.IndexOutput createOutputRaw(String name)
                                                    throws IOException
Creates a raw output, no checksum is computed, and no compression if enabled.

Throws:
IOException

openInputRaw

public org.apache.lucene.store.IndexInput openInputRaw(String name)
                                                throws IOException
Opened an index input in raw form, no decompression for example.

Throws:
IOException

writeChecksum

public void writeChecksum(String name,
                          String checksum)
                   throws IOException
Throws:
IOException

writeChecksums

public void writeChecksums(Map<String,String> checksums)
                    throws IOException
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.