Package io.trino.sql.planner.plan
Class TableScanNode
- java.lang.Object
-
- io.trino.sql.planner.plan.PlanNode
-
- io.trino.sql.planner.plan.TableScanNode
-
@Immutable public class TableScanNode extends PlanNode
-
-
Constructor Summary
Constructors Constructor Description TableScanNode(PlanNodeId id, TableHandle table, List<Symbol> outputs, Map<Symbol,ColumnHandle> assignments, boolean updateTarget, Optional<Boolean> useConnectorNodePartitioning)Deprecated.TableScanNode(PlanNodeId id, TableHandle table, List<Symbol> outputs, Map<Symbol,ColumnHandle> assignments, TupleDomain<ColumnHandle> enforcedConstraint, boolean updateTarget, Optional<Boolean> useConnectorNodePartitioning)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(PlanVisitor<R,C> visitor, C context)Map<Symbol,ColumnHandle>getAssignments()TupleDomain<ColumnHandle>getEnforcedConstraint()A TupleDomain that represents a predicate that has been successfully pushed into this TableScan node.List<Symbol>getOutputSymbols()List<PlanNode>getSources()TableHandlegetTable()Optional<Boolean>getUseConnectorNodePartitioning()booleanisUpdateTarget()booleanisUseConnectorNodePartitioning()static TableScanNodenewInstance(PlanNodeId id, TableHandle table, List<Symbol> outputs, Map<Symbol,ColumnHandle> assignments, boolean updateTarget, Optional<Boolean> useConnectorNodePartitioning)PlanNodereplaceChildren(List<PlanNode> newChildren)StringtoString()TableScanNodewithUseConnectorNodePartitioning(boolean useConnectorNodePartitioning)
-
-
-
Constructor Detail
-
TableScanNode
@Deprecated public TableScanNode(PlanNodeId id, TableHandle table, List<Symbol> outputs, Map<Symbol,ColumnHandle> assignments, boolean updateTarget, Optional<Boolean> useConnectorNodePartitioning)
Deprecated.
-
TableScanNode
public TableScanNode(PlanNodeId id, TableHandle table, List<Symbol> outputs, Map<Symbol,ColumnHandle> assignments, TupleDomain<ColumnHandle> enforcedConstraint, boolean updateTarget, Optional<Boolean> useConnectorNodePartitioning)
-
-
Method Detail
-
newInstance
public static TableScanNode newInstance(PlanNodeId id, TableHandle table, List<Symbol> outputs, Map<Symbol,ColumnHandle> assignments, boolean updateTarget, Optional<Boolean> useConnectorNodePartitioning)
-
getTable
public TableHandle getTable()
-
getOutputSymbols
public List<Symbol> getOutputSymbols()
- Specified by:
getOutputSymbolsin classPlanNode
-
getAssignments
public Map<Symbol,ColumnHandle> getAssignments()
-
getEnforcedConstraint
public TupleDomain<ColumnHandle> getEnforcedConstraint()
A TupleDomain that represents a predicate that has been successfully pushed into this TableScan node. In other words, predicates that were removed from filters above the TableScan node because the TableScan node can guarantee it.This field is used to make sure that predicates which were previously pushed down do not get lost in subsequent refinements of the table layout.
-
isUpdateTarget
public boolean isUpdateTarget()
-
isUseConnectorNodePartitioning
public boolean isUseConnectorNodePartitioning()
-
getSources
public List<PlanNode> getSources()
- Specified by:
getSourcesin classPlanNode
-
accept
public <R,C> R accept(PlanVisitor<R,C> visitor, C context)
-
replaceChildren
public PlanNode replaceChildren(List<PlanNode> newChildren)
- Specified by:
replaceChildrenin classPlanNode
-
withUseConnectorNodePartitioning
public TableScanNode withUseConnectorNodePartitioning(boolean useConnectorNodePartitioning)
-
-