Class BatchReader
java.lang.Object
org.apache.drill.exec.store.parquet.columnreaders.BatchReader
- Direct Known Subclasses:
BatchReader.FixedWidthReader,BatchReader.MockBatchReader,BatchReader.VariableWidthReader
Base strategy for reading a batch of Parquet records.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStrategy for reading a record batch when all columns are fixed-width.static classStrategy for reading mock records.static classStrategy for reading a record batch when at last one column is variable width. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidreadAllFixedFields(long recordsToRead) protected voidreadAllFixedFieldsParallel(long recordsToRead) protected voidreadAllFixedFieldsSerial(long recordsToRead) intprotected abstract intreadRecords(ColumnReader<?> firstColumnStatus, long recordsToRead)
-
Field Details
-
readState
-
-
Constructor Details
-
BatchReader
-
-
Method Details
-
readBatch
- Throws:
Exception
-
readRecords
protected abstract int readRecords(ColumnReader<?> firstColumnStatus, long recordsToRead) throws Exception - Throws:
Exception
-
readAllFixedFields
- Throws:
Exception
-
readAllFixedFieldsSerial
- Throws:
IOException
-
readAllFixedFieldsParallel
- Throws:
Exception
-