public class ParquetFileShimImpl extends Object implements ParquetFileShim
Constructor and Description |
---|
ParquetFileShimImpl(FileClient fileClient,
Path filePath) |
Modifier and Type | Method and Description |
---|---|
Path |
getFilePath()
Get the file path of the Parquet file.
|
RecordReaderShim |
getReader(long offset,
long length,
String[] columns,
RecordSettable target)
Get a reader that can read records from the Parquet file.
|
RecordTokenType |
getType()
Get the record type of the Parquet file.
|
public ParquetFileShimImpl(FileClient fileClient, Path filePath) throws IOException
IOException
public Path getFilePath()
ParquetFileShim
getFilePath
in interface ParquetFileShim
public RecordTokenType getType() throws IOException
ParquetFileShim
getType
in interface ParquetFileShim
IOException
- thrown if an I/O error occurs accessing the Parquet filepublic RecordReaderShim getReader(long offset, long length, String[] columns, RecordSettable target) throws IOException
ParquetFileShim
getReader
in interface ParquetFileShim
offset
- beginning offset in the file to begin reading (start of split)length
- amount of data to read (size of split)columns
- names of the columns to read (empty = all columns)target
- record target for the data read by the readerIOException
- thrown if an I/O error occurs accessing the Parquet fileCopyright © 2016 Actian Corporation. All Rights Reserved.