public abstract class CommonParquetRecordReader extends AbstractRecordReader
Modifier and Type | Class and Description |
---|---|
static class |
CommonParquetRecordReader.Metric |
Modifier and Type | Field and Description |
---|---|
protected org.apache.parquet.hadoop.metadata.ParquetMetadata |
footer |
protected FragmentContext |
fragmentContext |
static int |
NUM_RECORDS_TO_READ_NOT_SPECIFIED
Set when caller wants to read all the rows contained within the Parquet file
|
protected OperatorContext |
operatorContext |
ParquetReaderStats |
parquetReaderStats |
DEFAULT_TEXT_COLS_TO_READ
ALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION
Constructor and Description |
---|
CommonParquetRecordReader(org.apache.parquet.hadoop.metadata.ParquetMetadata footer,
FragmentContext fragmentContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeStats(org.slf4j.Logger logger,
org.apache.hadoop.fs.Path hadoopPath) |
protected RuntimeException |
handleAndRaise(String message,
Exception e) |
protected int |
initNumRecordsToRead(long numRecordsToRead,
int rowGroupIndex,
org.apache.parquet.hadoop.metadata.ParquetMetadata footer) |
void |
updateRowGroupsStats(long numRowGroups,
long rowGroupsPruned) |
allocate, getColumns, getDefaultColumnsToRead, hasNext, isSkipQuery, isStarQuery, setColumns, toString, transformColumns
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
next, setup
close
public static final int NUM_RECORDS_TO_READ_NOT_SPECIFIED
protected final FragmentContext fragmentContext
public ParquetReaderStats parquetReaderStats
protected OperatorContext operatorContext
protected org.apache.parquet.hadoop.metadata.ParquetMetadata footer
public CommonParquetRecordReader(org.apache.parquet.hadoop.metadata.ParquetMetadata footer, FragmentContext fragmentContext)
public void updateRowGroupsStats(long numRowGroups, long rowGroupsPruned)
protected void closeStats(org.slf4j.Logger logger, org.apache.hadoop.fs.Path hadoopPath)
protected int initNumRecordsToRead(long numRecordsToRead, int rowGroupIndex, org.apache.parquet.hadoop.metadata.ParquetMetadata footer)
protected RuntimeException handleAndRaise(String message, Exception e)
Copyright © 1970 The Apache Software Foundation. All rights reserved.