Package org.apache.drill.exec.store
Class CommonParquetRecordReader
java.lang.Object
org.apache.drill.exec.store.AbstractRecordReader
org.apache.drill.exec.store.CommonParquetRecordReader
- All Implemented Interfaces:
AutoCloseable
,RecordReader
- Direct Known Subclasses:
DrillParquetReader
,ParquetRecordReader
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.parquet.hadoop.metadata.ParquetMetadata
protected final FragmentContext
static final int
Set when caller wants to read all the rows contained within the Parquet fileprotected OperatorContext
Fields inherited from class org.apache.drill.exec.store.AbstractRecordReader
DEFAULT_TEXT_COLS_TO_READ
Fields inherited from interface org.apache.drill.exec.store.RecordReader
ALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION
-
Constructor Summary
ConstructorDescriptionCommonParquetRecordReader
(org.apache.parquet.hadoop.metadata.ParquetMetadata footer, FragmentContext fragmentContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Methods inherited from class org.apache.drill.exec.store.AbstractRecordReader
allocate, getColumns, getDefaultColumnsToRead, hasNext, isSkipQuery, isStarQuery, setColumns, toString, transformColumns
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.AutoCloseable
close
Methods inherited from interface org.apache.drill.exec.store.RecordReader
next, setup
-
Field Details
-
NUM_RECORDS_TO_READ_NOT_SPECIFIED
public static final int NUM_RECORDS_TO_READ_NOT_SPECIFIEDSet when caller wants to read all the rows contained within the Parquet file- See Also:
-
fragmentContext
-
parquetReaderStats
-
operatorContext
-
-
Constructor Details
-
CommonParquetRecordReader
public CommonParquetRecordReader(org.apache.parquet.hadoop.metadata.ParquetMetadata footer, FragmentContext fragmentContext)
-
-
Method Details
-
updateRowGroupsStats
public void updateRowGroupsStats(long numRowGroups, long rowGroupsPruned) -
closeStats
protected void closeStats(org.slf4j.Logger logger, org.apache.hadoop.fs.Path hadoopPath) -
initNumRecordsToRead
protected int initNumRecordsToRead(long numRecordsToRead, int rowGroupIndex, org.apache.parquet.hadoop.metadata.ParquetMetadata footer) -
handleAndRaise
-