Package org.apache.iceberg.io
Interface InputFile
- All Known Subinterfaces:
- NativeEncryptionInputFile
- All Known Implementing Classes:
- AesGcmInputFile,- HadoopInputFile,- InMemoryInputFile,- S3InputFile
public interface InputFile
An interface used to read input files using 
SeekableInputStream instances.
 This class is based on Parquet's InputFile.
- 
Method SummaryModifier 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 file
- 
Method Details- 
getLengthlong getLength()Returns the total length of the file, in bytes- Returns:
- the total length of the file, in bytes
- Throws:
- RuntimeIOException- If the implementation throws an- IOException
 
- 
newStreamSeekableInputStream newStream()Opens a newSeekableInputStreamfor the underlying data file- Returns:
- a seekable stream for reading the file
- Throws:
- NotFoundException- If the file does not exist
- RuntimeIOException- If the implementation throws an- IOException
 
- 
locationString location()The fully-qualified location of the input file as a String.- Returns:
- the input file location
 
- 
existsboolean exists()Checks whether the file exists.- Returns:
- true if the file exists, false otherwise
 
 
-