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
IOExceptionpublic Path getFilePath()
ParquetFileShimgetFilePath in interface ParquetFileShimpublic RecordTokenType getType() throws IOException
ParquetFileShimgetType in interface ParquetFileShimIOException - thrown if an I/O error occurs accessing the Parquet filepublic RecordReaderShim getReader(long offset, long length, String[] columns, RecordSettable target) throws IOException
ParquetFileShimgetReader in interface ParquetFileShimoffset - 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.