Class ReaderSchemaOrchestrator
java.lang.Object
org.apache.drill.exec.physical.impl.scan.project.ReaderSchemaOrchestrator
- All Implemented Interfaces:
VectorSource
Orchestrates projection tasks for a single reader within the set that the
scan operator manages. Vectors are reused across readers, but via a vector
cache. All other state is distinct between readers.
-
Constructor Summary
ConstructorDescriptionReaderSchemaOrchestrator
(ScanSchemaOrchestrator scanSchemaOrchestrator, long limit) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
void
endBatch()
Build the final output batch by projecting columns from the three input sources to the output batch.boolean
endBatch
(boolean eof) Build the final output batch by projecting columns from the three input sources to the output batch.boolean
makeTableLoader
(CustomErrorContext errorContext, TupleMetadata readerSchema, long localLimit) makeTableLoader
(TupleMetadata readerSchema) void
setBatchSize
(int size) boolean
vector
(int index)
-
Constructor Details
-
ReaderSchemaOrchestrator
-
-
Method Details
-
setBatchSize
public void setBatchSize(int size) -
makeTableLoader
-
makeTableLoader
public ResultSetLoader makeTableLoader(CustomErrorContext errorContext, TupleMetadata readerSchema, long localLimit) -
hasSchema
public boolean hasSchema() -
defineSchema
public void defineSchema() -
startBatch
public boolean startBatch() -
endBatch
public void endBatch()Build the final output batch by projecting columns from the three input sources to the output batch. First, build the metadata and/or null columns for the table row count. Then, merge the sources. -
endBatch
public boolean endBatch(boolean eof) Build the final output batch by projecting columns from the three input sources to the output batch. First, build the metadata and/or null columns for the table row count. Then, merge the sources.- Parameters:
eof
- is end of file
-
vector
- Specified by:
vector
in interfaceVectorSource
-
close
public void close()
-