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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglonglongorg.apache.iceberg.io.FileIOloadFileIO(org.apache.polaris.core.storage.StorageAccessConfig storageAccessConfig, String ioImplClassName, Map<String, String> properties)
-
Field Details
-
loadFileIOExceptionSupplier
-
newInputFileExceptionSupplier
-
newOutputFileExceptionSupplier
-
getLengthExceptionSupplier
-
-
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:
loadFileIOin interfaceorg.apache.polaris.service.catalog.io.FileIOFactory
-
getInputBytes
public long getInputBytes() -
getNumOutputFiles
public long getNumOutputFiles() -
getNumDeletedFiles
public long getNumDeletedFiles()
-