@Immutable public final class TopNNode extends PlanNode
| Modifier and Type | Class and Description |
|---|---|
static class |
TopNNode.Step
Stages of `TopNNode`:
SINGLE: `TopNNode` is in the logical plan.
|
| Constructor and Description |
|---|
TopNNode(Optional<SourceLocation> sourceLocation,
PlanNodeId id,
Optional<PlanNode> statsEquivalentPlanNode,
PlanNode source,
long count,
OrderingScheme orderingScheme,
TopNNode.Step step) |
TopNNode(Optional<SourceLocation> sourceLocation,
PlanNodeId id,
PlanNode source,
long count,
OrderingScheme orderingScheme,
TopNNode.Step step) |
| 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
|
long |
getCount() |
OrderingScheme |
getOrderingScheme() |
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.
|
TopNNode.Step |
getStep() |
PlanNode |
replaceChildren(List<PlanNode> newChildren)
Alter the upstream PlanNodes of the current PlanNode.
|
getId, getSourceLocation, getStatsEquivalentPlanNodepublic TopNNode(Optional<SourceLocation> sourceLocation, PlanNodeId id, PlanNode source, long count, OrderingScheme orderingScheme, TopNNode.Step step)
public TopNNode(Optional<SourceLocation> sourceLocation, PlanNodeId id, Optional<PlanNode> statsEquivalentPlanNode, PlanNode source, long count, OrderingScheme orderingScheme, TopNNode.Step step)
public List<PlanNode> getSources()
PlanNodegetSources in class PlanNodepublic PlanNode getSource()
public LogicalProperties computeLogicalProperties(LogicalPropertiesProvider logicalPropertiesProvider)
PlanNodecomputeLogicalProperties in class PlanNodepublic List<VariableReferenceExpression> getOutputVariables()
PlanNodegetOutputVariables in class PlanNodepublic long getCount()
public OrderingScheme getOrderingScheme()
public TopNNode.Step getStep()
public <R,C> R accept(PlanVisitor<R,C> visitor, C context)
PlanNodepublic PlanNode assignStatsEquivalentPlanNode(Optional<PlanNode> statsEquivalentPlanNode)
PlanNodeassignStatsEquivalentPlanNode in class PlanNodeCopyright © 2012–2022. All rights reserved.