@Immutable public final class FilterNode extends PlanNode
| Constructor and Description |
|---|
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.
|
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, getSourceLocationpublic FilterNode(Optional<SourceLocation> sourceLocation, PlanNodeId id, 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 replaceChildren(List<PlanNode> newChildren)
PlanNodereplaceChildren in class PlanNodeCopyright © 2012–2022. All rights reserved.