public static class TableScanOperator.TableScanOperatorFactory extends Object implements SourceOperatorFactory, WorkProcessorSourceOperatorFactory
| Constructor and Description |
|---|
TableScanOperatorFactory(int operatorId,
PlanNodeId sourceId,
PageSourceProvider pageSourceProvider,
TableHandle table,
Iterable<ColumnHandle> columns) |
| Modifier and Type | Method and Description |
|---|---|
WorkProcessorSourceOperator |
create(Session session,
MemoryTrackingContext memoryTrackingContext,
DriverYieldSignal yieldSignal,
WorkProcessor<Split> splits) |
SourceOperator |
createOperator(DriverContext driverContext) |
int |
getOperatorId() |
String |
getOperatorType() |
PlanNodeId |
getSourceId() |
void |
noMoreOperators()
Declare that createOperator will not be called any more and release
any resources associated with this factory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitduplicatenoMoreOperatorspublic TableScanOperatorFactory(int operatorId,
PlanNodeId sourceId,
PageSourceProvider pageSourceProvider,
TableHandle table,
Iterable<ColumnHandle> columns)
public int getOperatorId()
getOperatorId in interface WorkProcessorSourceOperatorFactorypublic PlanNodeId getSourceId()
getSourceId in interface SourceOperatorFactorygetSourceId in interface WorkProcessorSourceOperatorFactorypublic String getOperatorType()
getOperatorType in interface WorkProcessorSourceOperatorFactorypublic SourceOperator createOperator(DriverContext driverContext)
createOperator in interface OperatorFactorycreateOperator in interface SourceOperatorFactorypublic WorkProcessorSourceOperator create(Session session, MemoryTrackingContext memoryTrackingContext, DriverYieldSignal yieldSignal, WorkProcessor<Split> splits)
create in interface WorkProcessorSourceOperatorFactorypublic void noMoreOperators()
OperatorFactoryThis method will be called only once. Implementation doesn't need to worry about duplicate invocations.
It is guaranteed that this will only be invoked after OperatorFactory.noMoreOperators(Lifespan)
has been invoked for all applicable driver groups.
noMoreOperators in interface OperatorFactoryCopyright © 2012–2019. All rights reserved.