java.lang.Object
org.apache.lucene.store.Directory
org.apache.lucene.store.FilterDirectory
org.elasticsearch.index.store.ByteSizeDirectory
org.elasticsearch.index.store.StoreMetricsDirectory
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
Fields inherited from class org.apache.lucene.store.FilterDirectory
in -
Constructor Summary
ConstructorsConstructorDescriptionStoreMetricsDirectory(ByteSizeDirectory in, PluggableDirectoryMetricsHolder<StoreMetrics> metricHolder) -
Method Summary
Modifier and TypeMethodDescriptionlonglongorg.apache.lucene.store.IndexInputMethods inherited from class org.elasticsearch.index.store.ByteSizeDirectory
estimateSizeInBytesMethods inherited from class org.apache.lucene.store.FilterDirectory
close, createOutput, createTempOutput, deleteFile, ensureOpen, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, rename, sync, syncMetaData, toString, unwrapMethods inherited from class org.apache.lucene.store.Directory
copyFrom, getTempFileName, openChecksumInput
-
Constructor Details
-
StoreMetricsDirectory
public StoreMetricsDirectory(ByteSizeDirectory in, PluggableDirectoryMetricsHolder<StoreMetrics> metricHolder)
-
-
Method Details
-
openInput
public org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException - Overrides:
openInputin classorg.apache.lucene.store.FilterDirectory- Throws:
IOException
-
estimateSizeInBytes
- Specified by:
estimateSizeInBytesin classByteSizeDirectory- Returns:
- the size of the directory
- Throws:
IOException- if an I/O error occurs
-
estimateDataSetSizeInBytes
- Specified by:
estimateDataSetSizeInBytesin classByteSizeDirectory- Returns:
- the size of the total data set of the directory (which can differ from {
ByteSizeDirectory.estimateSizeInBytes()}) - Throws:
IOException- if an I/O error occurs
-