Class BatchReader.MockBatchReader
java.lang.Object
org.apache.drill.exec.store.parquet.columnreaders.BatchReader
org.apache.drill.exec.store.parquet.columnreaders.BatchReader.MockBatchReader
- Enclosing class:
- BatchReader
Strategy for reading mock records. Mock records appear to occur in the case
in which the query has SELECT a, b, but the Parquet file has only c, d.
A mock scan reads dummy columns for all records to ensure that the batch
contains a record for each Parquet record, but with no data per record.
(This explanation is reverse-engineered from the code and may be wrong.
Caveat emptor!)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.store.parquet.columnreaders.BatchReader
BatchReader.FixedWidthReader, BatchReader.MockBatchReader, BatchReader.VariableWidthReader
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.parquet.columnreaders.BatchReader
readState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
readRecords
(ColumnReader<?> firstColumnStatus, long recordsToRead) Methods inherited from class org.apache.drill.exec.store.parquet.columnreaders.BatchReader
readAllFixedFields, readAllFixedFieldsParallel, readAllFixedFieldsSerial, readBatch
-
Constructor Details
-
MockBatchReader
-
-
Method Details
-
readRecords
- Specified by:
readRecords
in classBatchReader
-