public class Sample extends SingleRel
In SQL, a sample is expressed using the TABLESAMPLE BERNOULLI or
SYSTEM keyword applied to a table, view or subquery.
digest, 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, getInput, getInputs, getRows, replaceInputaccept, accept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesStopped, isDistinct, isKey, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringpublic 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
RelWriterImpl.input(String, RelNode)
and
RelWriterImpl.item(String, Object)
methods for each input and attribute.explainTerms in class SingleRelpw - Plan writerCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.