public class Sample extends SingleRel
In SQL, a sample is expressed using the TABLESAMPLE BERNOULLI or
SYSTEM keyword applied to a table, view or sub-query.
RelNode.Contextdigest, id, rowType, traitSet| Constructor and Description |
|---|
Sample(RelInput input)
Creates a Sample by parsing serialized output.
|
Sample(RelOptCluster cluster,
RelNode child,
RelOptSamplingParameters params) |
| Modifier and Type | Method and Description |
|---|---|
RelNode |
copy(RelTraitSet traitSet,
List<RelNode> inputs)
Creates a copy of this relational expression, perhaps changing traits and
inputs.
|
RelWriter |
explainTerms(RelWriter pw)
Describes the inputs and attributes of this relational expression.
|
RelOptSamplingParameters |
getSamplingParameters()
Retrieve the sampling parameters for this Sample.
|
childrenAccept, deriveRowType, estimateRowCount, getInput, getInputs, replaceInputaccept, accept, collectVariablesSet, collectVariablesUsed, computeSelfCost, deepEquals, deepHashCode, equals, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getRelDigest, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesSet, hashCode, isEnforcer, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitexplain, fieldIsNullablepublic Sample(RelOptCluster cluster, RelNode child, RelOptSamplingParameters params)
public Sample(RelInput input)
public RelNode copy(RelTraitSet traitSet, List<RelNode> inputs)
RelNodeSub-classes with other important attributes are encouraged to create variants of this method with more parameters.
copy in interface RelNodecopy in class AbstractRelNodetraitSet - Trait setinputs - Inputspublic RelOptSamplingParameters getSamplingParameters()
public RelWriter explainTerms(RelWriter pw)
AbstractRelNodesuper.explainTerms, then call the
RelWriter.input(String, RelNode)
and
RelWriter.item(String, Object)
methods for each input and attribute.explainTerms in class SingleRelpw - Plan writerCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.