Package io.trino.sql.planner.plan
Class LimitNode
- java.lang.Object
-
- io.trino.sql.planner.plan.PlanNode
-
- io.trino.sql.planner.plan.LimitNode
-
@Immutable public class LimitNode extends PlanNode
-
-
Constructor Summary
Constructors Constructor Description LimitNode(PlanNodeId id, PlanNode source, long count, boolean partial)LimitNode(PlanNodeId id, PlanNode source, long count, Optional<OrderingScheme> tiesResolvingScheme, boolean partial, List<Symbol> preSortedInputs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(PlanVisitor<R,C> visitor, C context)longgetCount()List<Symbol>getOutputSymbols()List<Symbol>getPreSortedInputs()PlanNodegetSource()List<PlanNode>getSources()Optional<OrderingScheme>getTiesResolvingScheme()booleanisPartial()booleanisWithTies()PlanNodereplaceChildren(List<PlanNode> newChildren)booleanrequiresPreSortedInputs()
-
-
-
Constructor Detail
-
LimitNode
public LimitNode(PlanNodeId id, PlanNode source, long count, boolean partial)
-
LimitNode
public LimitNode(PlanNodeId id, PlanNode source, long count, Optional<OrderingScheme> tiesResolvingScheme, boolean partial, List<Symbol> preSortedInputs)
-
-
Method Detail
-
getSources
public List<PlanNode> getSources()
- Specified by:
getSourcesin classPlanNode
-
getSource
public PlanNode getSource()
-
getCount
public long getCount()
-
isWithTies
public boolean isWithTies()
-
getTiesResolvingScheme
public Optional<OrderingScheme> getTiesResolvingScheme()
-
isPartial
public boolean isPartial()
-
requiresPreSortedInputs
public boolean requiresPreSortedInputs()
-
getOutputSymbols
public List<Symbol> getOutputSymbols()
- Specified by:
getOutputSymbolsin classPlanNode
-
accept
public <R,C> R accept(PlanVisitor<R,C> visitor, C context)
-
replaceChildren
public PlanNode replaceChildren(List<PlanNode> newChildren)
- Specified by:
replaceChildrenin classPlanNode
-
-