Class ByteWritesTrackingDirectoryWrapper

java.lang.Object
org.apache.lucene.store.Directory
org.apache.lucene.store.FilterDirectory
org.apache.lucene.misc.store.ByteWritesTrackingDirectoryWrapper
All Implemented Interfaces:
Closeable, AutoCloseable

public final class ByteWritesTrackingDirectoryWrapper extends FilterDirectory
FilterDirectory that tracks write amplification factor
  • Field Details

    • trackTempOutput

      public final boolean trackTempOutput
  • Constructor Details

    • ByteWritesTrackingDirectoryWrapper

      public ByteWritesTrackingDirectoryWrapper(Directory in)
    • ByteWritesTrackingDirectoryWrapper

      public ByteWritesTrackingDirectoryWrapper(Directory in, boolean trackTempOutput)
      Constructor with option to track tempOutput
      Parameters:
      in - input Directory
      trackTempOutput - if true, will also track temporary outputs created by this directory
  • Method Details