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
public class ByteTrackingIndexOutput extends FilterIndexOutput
AnIndexOutput
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
Constructors Modifier Constructor Description protected
ByteTrackingIndexOutput(IndexOutput out, AtomicLong byteTracker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
-
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 Detail
-
ByteTrackingIndexOutput
protected ByteTrackingIndexOutput(IndexOutput out, AtomicLong byteTracker)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterIndexOutput
- Throws:
IOException
-
-