Package org.apache.parquet.io
Interface InputFile
-
public interface InputFileInputFileis an interface with the methods needed by Parquet to read data files usingSeekableInputStreaminstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetLength()SeekableInputStreamnewStream()Open a newSeekableInputStreamfor the underlying data file.
-
-
-
Method Detail
-
getLength
long getLength() throws IOException- Returns:
- the total length of the file, in bytes.
- Throws:
IOException- if the length cannot be determined
-
newStream
SeekableInputStream newStream() throws IOException
Open a newSeekableInputStreamfor the underlying data file.- Returns:
- a new
SeekableInputStreamto read the file - Throws:
IOException- if the stream cannot be opened
-
-