Class DruidRecordReader
java.lang.Object
org.apache.drill.exec.store.AbstractRecordReader
org.apache.drill.exec.store.druid.DruidRecordReader
- All Implemented Interfaces:
AutoCloseable
,RecordReader
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.AbstractRecordReader
DEFAULT_TEXT_COLS_TO_READ
Fields inherited from interface org.apache.drill.exec.store.RecordReader
ALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION
-
Constructor Summary
ConstructorDescriptionDruidRecordReader
(DruidSubScan.DruidSubScanSpec subScanSpec, List<SchemaPath> projectedColumns, int maxRecordsToRead, FragmentContext context, DruidStoragePlugin plugin) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
next()
Increments this record reader forward, writing via the provided output mutator into the output batch.void
setup
(OperatorContext context, OutputMutator output) Configure the RecordReader with the provided schema and the record batch that should be written to.protected Collection<SchemaPath>
transformColumns
(Collection<SchemaPath> projectedColumns) Methods inherited from class org.apache.drill.exec.store.AbstractRecordReader
allocate, getColumns, getDefaultColumnsToRead, hasNext, isSkipQuery, isStarQuery, setColumns, toString
-
Constructor Details
-
DruidRecordReader
public DruidRecordReader(DruidSubScan.DruidSubScanSpec subScanSpec, List<SchemaPath> projectedColumns, int maxRecordsToRead, FragmentContext context, DruidStoragePlugin plugin)
-
-
Method Details
-
transformColumns
- Overrides:
transformColumns
in classAbstractRecordReader
-
setup
Description copied from interface:RecordReader
Configure the RecordReader with the provided schema and the record batch that should be written to.- Parameters:
context
- operator context for the readeroutput
- The place where output for a particular scan should be written. The record reader is responsible for mutating the set of schema values for that particular record.
-
next
public int next()Description copied from interface:RecordReader
Increments this record reader forward, writing via the provided output mutator into the output batch.- Returns:
- The number of additional records added to the output.
-
close
- Throws:
Exception
-