Package org.apache.parquet.io
Interface InputFile
-
public interface InputFile
InputFile
is an interface with the methods needed by Parquet to read data files usingSeekableInputStream
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getLength()
SeekableInputStream
newStream()
Open a newSeekableInputStream
for 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 newSeekableInputStream
for the underlying data file.- Returns:
- a new
SeekableInputStream
to read the file - Throws:
IOException
- if the stream cannot be opened
-
-