Package org.apache.parquet.io
Interface InputFile
- All Known Implementing Classes:
LocalInputFile
public interface InputFile
InputFile is an interface with the methods needed by Parquet to read
data files using SeekableInputStream instances.-
Method Summary
Modifier and TypeMethodDescriptionlongOpen a newSeekableInputStreamfor the underlying data file.
-
Method Details
-
getLength
- Returns:
- the total length of the file, in bytes.
- Throws:
IOException- if the length cannot be determined
-
newStream
Open a newSeekableInputStreamfor the underlying data file.- Returns:
- a new
SeekableInputStreamto read the file - Throws:
IOException- if the stream cannot be opened
-