public abstract static class ScanSchemaOrchestrator.ScanOrchestratorBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
disableEmptyResults
Option to disable empty results.
|
| Constructor and Description |
|---|
ScanOrchestratorBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParser(ScanLevelProjection.ScanProjectionParser parser) |
void |
addResolver(ReaderLevelProjection.ReaderProjectionResolver resolver) |
void |
allowRequiredNullColumns(boolean flag) |
void |
batchByteLimit(int byteLimit) |
void |
batchRecordLimit(int batchRecordLimit)
Specify a custom batch record count.
|
abstract ScanOperatorEvents |
buildEvents() |
ScanOperatorExec |
buildScan() |
OperatorRecordBatch |
buildScanOperator(FragmentContext fragContext,
PhysicalOperator pop) |
void |
disableEmptyResults(boolean option) |
void |
enableSchemaBatch(boolean option) |
void |
enableSchemaSmoothing(boolean flag)
Enable schema smoothing: introduces an addition level of schema
resolution each time a schema changes from a reader.
|
CustomErrorContext |
errorContext() |
void |
errorContext(CustomErrorContext context) |
void |
nullType(TypeProtos.MajorType nullType)
Specify the type to use for null columns in place of the standard
nullable int.
|
void |
projection(List<SchemaPath> projection) |
TupleMetadata |
providedSchema() |
void |
providedSchema(TupleMetadata providedSchema) |
void |
withImplicitColumns(MetadataManager metadataMgr)
Specify an optional metadata manager.
|
public boolean disableEmptyResults
Disabling this option is not desirable: it means that the user gets no schema for queries that should be able to return one. So, disable this option only if we cannot find or fix empty-batch bugs.
public void withImplicitColumns(MetadataManager metadataMgr)
metadataMgr - the application-specific metadata manager to use
for this scanpublic void batchRecordLimit(int batchRecordLimit)
batchRecordLimit - maximum records per batchpublic void batchByteLimit(int byteLimit)
public void nullType(TypeProtos.MajorType nullType)
nullType - the type to use for null columnspublic void enableSchemaSmoothing(boolean flag)
flag - true to enable schema smoothing, false to disablepublic void allowRequiredNullColumns(boolean flag)
public void addParser(ScanLevelProjection.ScanProjectionParser parser)
public void addResolver(ReaderLevelProjection.ReaderProjectionResolver resolver)
public void projection(List<SchemaPath> projection)
public void enableSchemaBatch(boolean option)
public void disableEmptyResults(boolean option)
public void providedSchema(TupleMetadata providedSchema)
public TupleMetadata providedSchema()
public void errorContext(CustomErrorContext context)
public CustomErrorContext errorContext()
public ScanOperatorExec buildScan()
public OperatorRecordBatch buildScanOperator(FragmentContext fragContext, PhysicalOperator pop)
public abstract ScanOperatorEvents buildEvents()
Copyright © 2021 The Apache Software Foundation. All rights reserved.