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
ConstructorsConstructorDescriptionReaderSchemaOrchestrator(ScanSchemaOrchestrator scanSchemaOrchestrator, long limit) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidendBatch()Build the final output batch by projecting columns from the three input sources to the output batch.booleanendBatch(boolean eof) Build the final output batch by projecting columns from the three input sources to the output batch.booleanmakeTableLoader(CustomErrorContext errorContext, TupleMetadata readerSchema, long localLimit) makeTableLoader(TupleMetadata readerSchema) voidsetBatchSize(int size) booleanvector(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:
vectorin interfaceVectorSource
-
close
public void close()
-