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
ConstructorsConstructorDescriptionMeasuredFileIOFactory(org.apache.polaris.service.config.RealmEntityManagerFactory realmEntityManagerFactory, org.apache.polaris.core.persistence.MetaStoreManagerFactory metaStoreManagerFactory, org.apache.polaris.core.config.PolarisConfigurationStore configurationStore) -
Method Summary
Modifier and TypeMethodDescriptionlonglonglongorg.apache.iceberg.io.FileIOloadFileIO(org.apache.polaris.core.context.CallContext callContext, String ioImplClassName, Map<String, String> properties, org.apache.iceberg.catalog.TableIdentifier identifier, Set<String> tableLocations, Set<org.apache.polaris.core.storage.PolarisStorageActions> storageActions, org.apache.polaris.core.persistence.PolarisResolvedPathWrapper resolvedEntityPath)
-
Field Details
-
loadFileIOExceptionSupplier
-
newInputFileExceptionSupplier
-
newOutputFileExceptionSupplier
-
getLengthExceptionSupplier
-
-
Constructor Details
-
MeasuredFileIOFactory
@Inject public MeasuredFileIOFactory(org.apache.polaris.service.config.RealmEntityManagerFactory realmEntityManagerFactory, org.apache.polaris.core.persistence.MetaStoreManagerFactory metaStoreManagerFactory, org.apache.polaris.core.config.PolarisConfigurationStore configurationStore)
-
-
Method Details
-
loadFileIO
public org.apache.iceberg.io.FileIO loadFileIO(@Nonnull org.apache.polaris.core.context.CallContext callContext, @Nonnull String ioImplClassName, @Nonnull Map<String, String> properties, @Nonnull org.apache.iceberg.catalog.TableIdentifier identifier, @Nonnull Set<String> tableLocations, @Nonnull Set<org.apache.polaris.core.storage.PolarisStorageActions> storageActions, @Nonnull org.apache.polaris.core.persistence.PolarisResolvedPathWrapper resolvedEntityPath) - Specified by:
loadFileIOin interfaceorg.apache.polaris.service.catalog.io.FileIOFactory
-
getInputBytes
public long getInputBytes() -
getNumOutputFiles
public long getNumOutputFiles() -
getNumDeletedFiles
public long getNumDeletedFiles()
-