Class MeasuredInputFile
java.lang.Object
org.apache.polaris.service.catalog.io.MeasuredInputFile
- All Implemented Interfaces:
org.apache.iceberg.io.InputFile
An InputFile wrapper that can be forced to throw exceptions.
-
Constructor Summary
ConstructorsConstructorDescriptionMeasuredInputFile(org.apache.iceberg.io.InputFile inputFile, Optional<Supplier<RuntimeException>> getLengthExceptionSupplier) -
Method Summary
-
Constructor Details
-
MeasuredInputFile
public MeasuredInputFile(org.apache.iceberg.io.InputFile inputFile, Optional<Supplier<RuntimeException>> getLengthExceptionSupplier)
-
-
Method Details
-
getLength
public long getLength()- Specified by:
getLengthin interfaceorg.apache.iceberg.io.InputFile
-
newStream
public org.apache.iceberg.io.SeekableInputStream newStream()- Specified by:
newStreamin interfaceorg.apache.iceberg.io.InputFile
-
location
- Specified by:
locationin interfaceorg.apache.iceberg.io.InputFile
-
exists
public boolean exists()- Specified by:
existsin interfaceorg.apache.iceberg.io.InputFile
-