Package io.prestosql.operator
Class TableScanOperator.TableScanOperatorFactory
- java.lang.Object
-
- io.prestosql.operator.TableScanOperator.TableScanOperatorFactory
-
- All Implemented Interfaces:
OperatorFactory
,SourceOperatorFactory
,WorkProcessorSourceOperatorFactory
- Enclosing class:
- TableScanOperator
public static class TableScanOperator.TableScanOperatorFactory extends Object implements SourceOperatorFactory, WorkProcessorSourceOperatorFactory
-
-
Constructor Summary
Constructors Constructor Description TableScanOperatorFactory(int operatorId, PlanNodeId sourceId, PageSourceProvider pageSourceProvider, TableHandle table, Iterable<ColumnHandle> columns, DynamicFilter dynamicFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkProcessorSourceOperator
create(Session session, MemoryTrackingContext memoryTrackingContext, DriverYieldSignal yieldSignal, WorkProcessor<Split> splits)
SourceOperator
createOperator(DriverContext driverContext)
int
getOperatorId()
String
getOperatorType()
PlanNodeId
getPlanNodeId()
PlanNodeId
getSourceId()
void
noMoreOperators()
Declare that createOperator will not be called any more and release any resources associated with this factory.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.prestosql.operator.OperatorFactory
noMoreOperators
-
Methods inherited from interface io.prestosql.operator.SourceOperatorFactory
duplicate
-
-
-
-
Constructor Detail
-
TableScanOperatorFactory
public TableScanOperatorFactory(int operatorId, PlanNodeId sourceId, PageSourceProvider pageSourceProvider, TableHandle table, Iterable<ColumnHandle> columns, DynamicFilter dynamicFilter)
-
-
Method Detail
-
getOperatorId
public int getOperatorId()
- Specified by:
getOperatorId
in interfaceWorkProcessorSourceOperatorFactory
-
getSourceId
public PlanNodeId getSourceId()
- Specified by:
getSourceId
in interfaceSourceOperatorFactory
- Specified by:
getSourceId
in interfaceWorkProcessorSourceOperatorFactory
-
getPlanNodeId
public PlanNodeId getPlanNodeId()
- Specified by:
getPlanNodeId
in interfaceWorkProcessorSourceOperatorFactory
-
getOperatorType
public String getOperatorType()
- Specified by:
getOperatorType
in interfaceWorkProcessorSourceOperatorFactory
-
createOperator
public SourceOperator createOperator(DriverContext driverContext)
- Specified by:
createOperator
in interfaceOperatorFactory
- Specified by:
createOperator
in interfaceSourceOperatorFactory
-
create
public WorkProcessorSourceOperator create(Session session, MemoryTrackingContext memoryTrackingContext, DriverYieldSignal yieldSignal, WorkProcessor<Split> splits)
- Specified by:
create
in interfaceWorkProcessorSourceOperatorFactory
-
noMoreOperators
public void noMoreOperators()
Description copied from interface:OperatorFactory
Declare that createOperator will not be called any more and release any resources associated with this factory.This 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.- Specified by:
noMoreOperators
in interfaceOperatorFactory
-
-