Package org.apache.iceberg.io
Class EagerInputFile
java.lang.Object
org.apache.iceberg.io.EagerInputFile
- All Implemented Interfaces:
InputFile
A decorator that collapses multiple object-store requests into one by fetching the entire file
eagerly on the first call.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()Checks whether the file exists.longReturns the total length of the file, in byteslocation()The fully-qualified location of the input file as a String.Opens a newSeekableInputStreamfor the underlying data filestatic InputFileReturns an InputFile that reads the entire file in a single request.
-
Method Details
-
of
Returns an InputFile that reads the entire file in a single request. -
getLength
public long getLength()Description copied from interface:InputFileReturns the total length of the file, in bytes -
location
Description copied from interface:InputFileThe fully-qualified location of the input file as a String. -
exists
public boolean exists()Description copied from interface:InputFileChecks whether the file exists. -
newStream
Description copied from interface:InputFileOpens a newSeekableInputStreamfor the underlying data file
-