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, Optional<PlanNodeStatsEstimate> statistics, boolean updateTarget, Optional<Boolean> useConnectorNodePartitioning)
-
Method Summary
-
-
-
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, Optional<PlanNodeStatsEstimate> statistics, boolean updateTarget, Optional<Boolean> useConnectorNodePartitioning)
-
-
Method Detail
-
newInstance
@Deprecated public static TableScanNode newInstance(PlanNodeId id, TableHandle table, List<Symbol> outputs, Map<Symbol,ColumnHandle> assignments, boolean updateTarget, Optional<Boolean> useConnectorNodePartitioning)
Deprecated.Use explicit constructor instead. Calling this method when transforming the plan may lead to information loss.
-
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.
-
getStatistics
public Optional<PlanNodeStatsEstimate> getStatistics()
Statistics if already known.
-
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)
-
-