java.lang.Object
org.apache.drill.exec.store.parquet.columnreaders.BatchReader
Direct Known Subclasses:
BatchReader.FixedWidthReader, BatchReader.MockBatchReader, BatchReader.VariableWidthReader

public abstract class BatchReader extends Object
Base strategy for reading a batch of Parquet records.
  • Field Details

    • readState

      protected final ReadState readState
  • Constructor Details

    • BatchReader

      public BatchReader(ReadState readState)
  • Method Details

    • readBatch

      public int readBatch() throws Exception
      Throws:
      Exception
    • readRecords

      protected abstract int readRecords(ColumnReader<?> firstColumnStatus, long recordsToRead) throws Exception
      Throws:
      Exception
    • readAllFixedFields

      protected void readAllFixedFields(long recordsToRead) throws Exception
      Throws:
      Exception
    • readAllFixedFieldsSerial

      protected void readAllFixedFieldsSerial(long recordsToRead) throws IOException
      Throws:
      IOException
    • readAllFixedFieldsParallel

      protected void readAllFixedFieldsParallel(long recordsToRead) throws Exception
      Throws:
      Exception