org.elasticsearch.index.store
Class Store
java.lang.Object
org.elasticsearch.index.shard.AbstractIndexShardComponent
org.elasticsearch.index.store.Store
- All Implemented Interfaces:
- IndexShardComponent
public class Store
- extends AbstractIndexShardComponent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Store
@Inject
public Store(ShardId shardId,
@IndexSettings
Settings indexSettings,
IndexStore indexStore,
IndexSettingsService indexSettingsService,
DirectoryService directoryService)
throws IOException
- Throws:
IOException
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.