Package org.apache.parquet.io
Class LocalInputFile
java.lang.Object
org.apache.parquet.io.LocalInputFile
- All Implemented Interfaces:
InputFile
LocalInputFile is an implementation needed by Parquet to read
from local data files using SeekableInputStream instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongOpen a newSeekableInputStreamfor the underlying data file.
-
Constructor Details
-
LocalInputFile
-
-
Method Details
-
getLength
- Specified by:
getLengthin interfaceInputFile- Returns:
- the total length of the file, in bytes.
- Throws:
IOException- if the length cannot be determined
-
newStream
Description copied from interface:InputFileOpen a newSeekableInputStreamfor the underlying data file.- Specified by:
newStreamin interfaceInputFile- Returns:
- a new
SeekableInputStreamto read the file - Throws:
IOException- if the stream cannot be opened
-