@Immutable public final class FilterNode extends PlanNode
| Constructor and Description |
|---|
FilterNode(Optional<SourceLocation> sourceLocation,
PlanNodeId id,
Optional<PlanNode> statsEquivalentPlanNode,
PlanNode source,
RowExpression predicate) |
FilterNode(Optional<SourceLocation> sourceLocation,
PlanNodeId id,
PlanNode source,
RowExpression predicate) |
| 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) |
List<VariableReferenceExpression> |
getOutputVariables()
The output from the upstream PlanNodes.
|
RowExpression |
getPredicate()
Get the predicate (a RowExpression of boolean type) of the FilterNode.
|
PlanNode |
getSource()
FilterNode only expects a single upstream PlanNode.
|
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 FilterNode(Optional<SourceLocation> sourceLocation, PlanNodeId id, PlanNode source, RowExpression predicate)
public FilterNode(Optional<SourceLocation> sourceLocation, PlanNodeId id, Optional<PlanNode> statsEquivalentPlanNode, PlanNode source, RowExpression predicate)
public RowExpression getPredicate()
public PlanNode getSource()
public List<VariableReferenceExpression> getOutputVariables()
PlanNodegetOutputVariables in class PlanNodepublic List<PlanNode> getSources()
PlanNodegetSources in class PlanNodepublic <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.