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
Modifier and TypeClassDescriptionstatic class
Strategy for reading a record batch when all columns are fixed-width.static class
Strategy for reading mock records.static class
Strategy for reading a record batch when at last one column is variable width. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
readAllFixedFields
(long recordsToRead) protected void
readAllFixedFieldsParallel
(long recordsToRead) protected void
readAllFixedFieldsSerial
(long recordsToRead) int
protected abstract int
readRecords
(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
-