Package org.apache.lucene.misc.store
Class ByteWritesTrackingDirectoryWrapper
java.lang.Object
org.apache.lucene.store.Directory
org.apache.lucene.store.FilterDirectory
org.apache.lucene.misc.store.ByteWritesTrackingDirectoryWrapper
- All Implemented Interfaces:
Closeable,AutoCloseable
FilterDirectory that tracks write amplification factor-
Field Summary
FieldsFields inherited from class org.apache.lucene.store.FilterDirectory
in -
Constructor Summary
ConstructorsConstructorDescriptionByteWritesTrackingDirectoryWrapper(Directory in, boolean trackTempOutput) Constructor with option to track tempOutput -
Method Summary
Modifier and TypeMethodDescriptioncreateOutput(String name, IOContext ioContext) createTempOutput(String prefix, String suffix, IOContext ioContext) longlongMethods inherited from class org.apache.lucene.store.FilterDirectory
close, deleteFile, ensureOpen, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, openInput, rename, sync, syncMetaData, toString, unwrapMethods inherited from class org.apache.lucene.store.Directory
copyFrom, getTempFileName, openChecksumInput
-
Field Details
-
trackTempOutput
public final boolean trackTempOutput
-
-
Constructor Details
-
ByteWritesTrackingDirectoryWrapper
-
ByteWritesTrackingDirectoryWrapper
Constructor with option to track tempOutput- Parameters:
in- input DirectorytrackTempOutput- if true, will also track temporary outputs created by this directory
-
-
Method Details
-
createOutput
- Overrides:
createOutputin classFilterDirectory- Throws:
IOException
-
createTempOutput
public IndexOutput createTempOutput(String prefix, String suffix, IOContext ioContext) throws IOException - Overrides:
createTempOutputin classFilterDirectory- Throws:
IOException
-
getFlushedBytes
public long getFlushedBytes() -
getMergedBytes
public long getMergedBytes()
-