java.lang.Object
org.apache.lucene.store.Directory
org.apache.lucene.store.FilterDirectory
org.elasticsearch.index.store.ByteSizeDirectory
- All Implemented Interfaces:
Closeable
,AutoCloseable
public abstract class ByteSizeDirectory
extends org.apache.lucene.store.FilterDirectory
-
Field Summary
Fields inherited from class org.apache.lucene.store.FilterDirectory
in
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract long
abstract long
protected static long
estimateSizeInBytes
(org.apache.lucene.store.Directory directory) Methods inherited from class org.apache.lucene.store.FilterDirectory
close, createOutput, createTempOutput, deleteFile, ensureOpen, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, openInput, rename, sync, syncMetaData, toString, unwrap
Methods inherited from class org.apache.lucene.store.Directory
copyFrom, getTempFileName, openChecksumInput
-
Constructor Details
-
ByteSizeDirectory
protected ByteSizeDirectory(org.apache.lucene.store.Directory in)
-
-
Method Details
-
estimateSizeInBytes
protected static long estimateSizeInBytes(org.apache.lucene.store.Directory directory) throws IOException - Throws:
IOException
-
estimateSizeInBytes
- Returns:
- the size of the directory
- Throws:
IOException
- if an I/O error occurs
-
estimateDataSetSizeInBytes
- Returns:
- the size of the total data set of the directory (which can differ from {
estimateSizeInBytes()
}) - Throws:
IOException
- if an I/O error occurs
-