@Immutable public final class ProjectNode extends PlanNode
| Modifier and Type | Class and Description |
|---|---|
static class |
ProjectNode.Locality |
| Constructor and Description |
|---|
ProjectNode(Optional<SourceLocation> sourceLocation,
PlanNodeId id,
Optional<PlanNode> statsEquivalentPlanNode,
PlanNode source,
Assignments assignments,
ProjectNode.Locality locality) |
ProjectNode(Optional<SourceLocation> sourceLocation,
PlanNodeId id,
PlanNode source,
Assignments assignments,
ProjectNode.Locality locality) |
ProjectNode(PlanNodeId id,
PlanNode source,
Assignments assignments) |
| Modifier and Type | Method and Description |
|---|---|
<R,C> R |
accept(PlanVisitor<R,C> visitor,
C context)
A visitor pattern interface to operate on IR.
|
PlanNode |
assignStatsEquivalentPlanNode(Optional<PlanNode> statsEquivalentPlanNode)
Assigns statsEquivalentPlanNode to the plan node
|
LogicalProperties |
computeLogicalProperties(LogicalPropertiesProvider logicalPropertiesProvider)
Logical properties are a function of source properties and the operation performed by the plan node
|
boolean |
equals(Object o) |
Assignments |
getAssignments() |
ProjectNode.Locality |
getLocality() |
List<VariableReferenceExpression> |
getOutputVariables()
The output from the upstream PlanNodes.
|
PlanNode |
getSource() |
List<PlanNode> |
getSources()
Get the upstream PlanNodes (i.e., children) of the current PlanNode.
|
int |
hashCode() |
PlanNode |
replaceChildren(List<PlanNode> newChildren)
Alter the upstream PlanNodes of the current PlanNode.
|
getId, getSourceLocation, getStatsEquivalentPlanNodepublic ProjectNode(PlanNodeId id, PlanNode source, Assignments assignments)
public ProjectNode(Optional<SourceLocation> sourceLocation, PlanNodeId id, PlanNode source, Assignments assignments, ProjectNode.Locality locality)
public ProjectNode(Optional<SourceLocation> sourceLocation, PlanNodeId id, Optional<PlanNode> statsEquivalentPlanNode, PlanNode source, Assignments assignments, ProjectNode.Locality locality)
public List<VariableReferenceExpression> getOutputVariables()
PlanNodegetOutputVariables in class PlanNodepublic Assignments getAssignments()
public List<PlanNode> getSources()
PlanNodegetSources in class PlanNodepublic PlanNode getSource()
public ProjectNode.Locality getLocality()
public <R,C> R accept(PlanVisitor<R,C> visitor, C context)
PlanNodepublic PlanNode assignStatsEquivalentPlanNode(Optional<PlanNode> statsEquivalentPlanNode)
PlanNodeassignStatsEquivalentPlanNode in class PlanNodepublic PlanNode replaceChildren(List<PlanNode> newChildren)
PlanNodereplaceChildren in class PlanNodepublic LogicalProperties computeLogicalProperties(LogicalPropertiesProvider logicalPropertiesProvider)
PlanNodecomputeLogicalProperties in class PlanNodeCopyright © 2012–2022. All rights reserved.