Package org.apache.lucene.misc.store
Class ByteTrackingIndexOutput
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
Fields inherited from class org.apache.lucene.store.FilterIndexOutput
out
-
Constructor Summary
ModifierConstructorDescriptionprotected
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, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLong
-
Constructor Details
-
ByteTrackingIndexOutput
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterIndexOutput
- Throws:
IOException
-