Package io.prestosql.sql.planner.plan
Class LimitNode
- java.lang.Object
-
- io.prestosql.sql.planner.plan.PlanNode
-
- io.prestosql.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(PlanVisitor<R,C> visitor, C context)
long
getCount()
List<Symbol>
getOutputSymbols()
PlanNode
getSource()
List<PlanNode>
getSources()
Optional<OrderingScheme>
getTiesResolvingScheme()
boolean
isPartial()
boolean
isWithTies()
PlanNode
replaceChildren(List<PlanNode> newChildren)
-
-
-
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)
-
-
Method Detail
-
getSources
public List<PlanNode> getSources()
- Specified by:
getSources
in classPlanNode
-
getSource
public PlanNode getSource()
-
getCount
public long getCount()
-
isWithTies
public boolean isWithTies()
-
getTiesResolvingScheme
public Optional<OrderingScheme> getTiesResolvingScheme()
-
isPartial
public boolean isPartial()
-
getOutputSymbols
public List<Symbol> getOutputSymbols()
- Specified by:
getOutputSymbols
in classPlanNode
-
accept
public <R,C> R accept(PlanVisitor<R,C> visitor, C context)
-
replaceChildren
public PlanNode replaceChildren(List<PlanNode> newChildren)
- Specified by:
replaceChildren
in classPlanNode
-
-