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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.parquet.hadoop.metadata.ParquetMetadataprotected final FragmentContextstatic final intSet when caller wants to read all the rows contained within the Parquet fileprotected OperatorContextFields inherited from class org.apache.drill.exec.store.AbstractRecordReader
DEFAULT_TEXT_COLS_TO_READFields inherited from interface org.apache.drill.exec.store.RecordReader
ALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION -
Constructor Summary
ConstructorsConstructorDescriptionCommonParquetRecordReader(org.apache.parquet.hadoop.metadata.ParquetMetadata footer, FragmentContext fragmentContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcloseStats(org.slf4j.Logger logger, org.apache.hadoop.fs.Path hadoopPath) protected RuntimeExceptionhandleAndRaise(String message, Exception e) protected intinitNumRecordsToRead(long numRecordsToRead, int rowGroupIndex, org.apache.parquet.hadoop.metadata.ParquetMetadata footer) voidupdateRowGroupsStats(long numRowGroups, long rowGroupsPruned) Methods inherited from class org.apache.drill.exec.store.AbstractRecordReader
allocate, getColumns, getDefaultColumnsToRead, hasNext, isSkipQuery, isStarQuery, setColumns, toString, transformColumnsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.AutoCloseable
closeMethods 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
-