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
ConstructorsModifierConstructorDescriptionprotected
ByteTrackingIndexOutput
(IndexOutput out, AtomicLong byteTracker) -
Method Summary
Methods inherited from class org.apache.lucene.store.FilterIndexOutput
getChecksum, getDelegate, getFilePointer, unwrap, writeByte, writeBytes
Methods inherited from class org.apache.lucene.store.IndexOutput
alignFilePointer, alignOffset, getName, toString
Methods inherited from class org.apache.lucene.store.DataOutput
copyBytes, writeBytes, writeGroupVInts, 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:IndexOutput
Closes this stream to further operations.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterIndexOutput
- Throws:
IOException
-