Class ByteTrackingIndexOutput

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class ByteTrackingIndexOutput
    extends FilterIndexOutput
    An IndexOutput that wraps another instance and tracks the number of bytes written
    • Field Detail

      • byteTracker

        private final java.util.concurrent.atomic.AtomicLong byteTracker
      • closed

        private boolean closed
    • Constructor Detail

      • ByteTrackingIndexOutput

        protected ByteTrackingIndexOutput​(IndexOutput out,
                                          java.util.concurrent.atomic.AtomicLong byteTracker)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Description copied from class: IndexOutput
        Closes this stream to further operations.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class FilterIndexOutput
        Throws:
        java.io.IOException