public class LocalInputFile extends Object implements InputFile
LocalInputFile is an implementation needed by Parquet to read
from local data files using SeekableInputStream instances.| Constructor and Description |
|---|
LocalInputFile(Path file) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLength() |
SeekableInputStream |
newStream()
Open a new
SeekableInputStream for the underlying data file. |
public LocalInputFile(Path file)
public long getLength()
throws IOException
getLength in interface InputFileIOException - if the length cannot be determinedpublic SeekableInputStream newStream() throws IOException
InputFileSeekableInputStream for the underlying data file.newStream in interface InputFileSeekableInputStream to read the fileIOException - if the stream cannot be openedCopyright © 2023 The Apache Software Foundation. All rights reserved.