@Immutable public final class DistinctLimitNode extends PlanNode
| Constructor and Description |
|---|
DistinctLimitNode(Optional<SourceLocation> sourceLocation,
PlanNodeId id,
Optional<PlanNode> statsEquivalentPlanNode,
PlanNode source,
long limit,
boolean partial,
List<VariableReferenceExpression> distinctVariables,
Optional<VariableReferenceExpression> hashVariable) |
DistinctLimitNode(Optional<SourceLocation> sourceLocation,
PlanNodeId id,
PlanNode source,
long limit,
boolean partial,
List<VariableReferenceExpression> distinctVariables,
Optional<VariableReferenceExpression> hashVariable) |
| 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
|
List<VariableReferenceExpression> |
getDistinctVariables() |
Optional<VariableReferenceExpression> |
getHashVariable() |
long |
getLimit() |
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.
|
boolean |
isPartial() |
PlanNode |
replaceChildren(List<PlanNode> newChildren)
Alter the upstream PlanNodes of the current PlanNode.
|
getId, getSourceLocation, getStatsEquivalentPlanNodepublic DistinctLimitNode(Optional<SourceLocation> sourceLocation, PlanNodeId id, PlanNode source, long limit, boolean partial, List<VariableReferenceExpression> distinctVariables, Optional<VariableReferenceExpression> hashVariable)
public DistinctLimitNode(Optional<SourceLocation> sourceLocation, PlanNodeId id, Optional<PlanNode> statsEquivalentPlanNode, PlanNode source, long limit, boolean partial, List<VariableReferenceExpression> distinctVariables, Optional<VariableReferenceExpression> hashVariable)
public List<PlanNode> getSources()
PlanNodegetSources in class PlanNodepublic PlanNode getSource()
public long getLimit()
public boolean isPartial()
public Optional<VariableReferenceExpression> getHashVariable()
public List<VariableReferenceExpression> getDistinctVariables()
public LogicalProperties computeLogicalProperties(LogicalPropertiesProvider logicalPropertiesProvider)
PlanNodecomputeLogicalProperties in class PlanNodepublic List<VariableReferenceExpression> getOutputVariables()
PlanNodegetOutputVariables in class PlanNodepublic <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.