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

public abstract class CommonParquetRecordReader extends AbstractRecordReader
  • Field Details

    • NUM_RECORDS_TO_READ_NOT_SPECIFIED

      public static final int NUM_RECORDS_TO_READ_NOT_SPECIFIED
      Set when caller wants to read all the rows contained within the Parquet file
      See Also:
    • fragmentContext

      protected final FragmentContext fragmentContext
    • parquetReaderStats

      public ParquetReaderStats parquetReaderStats
    • operatorContext

      protected OperatorContext 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

      protected RuntimeException handleAndRaise(String message, Exception e)