Package io.trino.sql.planner.plan
Class SampleNode
- java.lang.Object
-
- io.trino.sql.planner.plan.PlanNode
-
- io.trino.sql.planner.plan.SampleNode
-
@Immutable public class SampleNode extends PlanNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSampleNode.Type
-
Constructor Summary
Constructors Constructor Description SampleNode(PlanNodeId id, PlanNode source, double sampleRatio, SampleNode.Type sampleType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(PlanVisitor<R,C> visitor, C context)List<Symbol>getOutputSymbols()doublegetSampleRatio()SampleNode.TypegetSampleType()PlanNodegetSource()List<PlanNode>getSources()PlanNodereplaceChildren(List<PlanNode> newChildren)
-
-
-
Constructor Detail
-
SampleNode
public SampleNode(PlanNodeId id, PlanNode source, double sampleRatio, SampleNode.Type sampleType)
-
-
Method Detail
-
getSources
public List<PlanNode> getSources()
- Specified by:
getSourcesin classPlanNode
-
getSource
public PlanNode getSource()
-
getSampleRatio
public double getSampleRatio()
-
getSampleType
public SampleNode.Type getSampleType()
-
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
-
-