Class MeasuredFileIOFactory

java.lang.Object
org.apache.polaris.service.catalog.io.MeasuredFileIOFactory
All Implemented Interfaces:
org.apache.polaris.service.catalog.io.FileIOFactory

@Vetoed public class MeasuredFileIOFactory extends Object implements org.apache.polaris.service.catalog.io.FileIOFactory
A FileIOFactory that measures the number of bytes read, files written, and files deleted. It can inject exceptions at various parts of the IO construction.
  • Field Details

  • Constructor Details

    • MeasuredFileIOFactory

      @Inject public MeasuredFileIOFactory()
  • Method Details

    • loadFileIO

      public org.apache.iceberg.io.FileIO loadFileIO(@Nonnull org.apache.polaris.core.storage.StorageAccessConfig storageAccessConfig, @Nonnull String ioImplClassName, @Nonnull Map<String,String> properties)
      Specified by:
      loadFileIO in interface org.apache.polaris.service.catalog.io.FileIOFactory
    • getInputBytes

      public long getInputBytes()
    • getNumOutputFiles

      public long getNumOutputFiles()
    • getNumDeletedFiles

      public long getNumDeletedFiles()