java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
org.apache.lucene.store.FilterIndexOutput
org.apache.lucene.misc.store.ByteTrackingIndexOutput
- All Implemented Interfaces:
Closeable,AutoCloseable
An
IndexOutput that wraps another instance and tracks the number of bytes written-
Field Summary
FieldsFields inherited from class org.apache.lucene.store.FilterIndexOutput
out -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedByteTrackingIndexOutput(IndexOutput out, AtomicLong byteTracker) -
Method Summary
Methods inherited from class org.apache.lucene.store.FilterIndexOutput
getChecksum, getDelegate, getFilePointer, unwrap, writeByte, writeBytesMethods inherited from class org.apache.lucene.store.IndexOutput
alignFilePointer, alignOffset, getName, toStringMethods inherited from class org.apache.lucene.store.DataOutput
copyBytes, writeBytes, writeGroupVInts, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLong
-
Field Details
-
byteTracker
-
closed
private boolean closed
-
-
Constructor Details
-
ByteTrackingIndexOutput
-
-
Method Details
-
close
Description copied from class:IndexOutputCloses this stream to further operations.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterIndexOutput- Throws:
IOException
-