public abstract class Union extends SetOp
Corresponds to SQL UNION and UNION ALL.
digest, id, rowType, traitSet| Modifier | Constructor and Description |
|---|---|
protected |
Union(RelInput input)
Creates a Union by parsing serialized output.
|
protected |
Union(RelOptCluster cluster,
RelTraitSet traits,
List<RelNode> inputs,
boolean all) |
| Modifier and Type | Method and Description |
|---|---|
static double |
estimateRowCount(RelNode rel)
Helper method for computing row count for UNION ALL.
|
double |
getRows()
Returns an estimate of the number of rows this relational expression will
return.
|
copy, copy, deriveRowType, explainTerms, getInputs, isHomogeneous, isKey, replaceInputaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesStopped, isDistinct, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringprotected Union(RelOptCluster cluster, RelTraitSet traits, List<RelNode> inputs, boolean all)
protected Union(RelInput input)
public double getRows()
RelNodeNOTE jvs 29-Mar-2006: Don't call this method directly. Instead, use
RelMetadataQuery.getRowCount(org.apache.calcite.rel.RelNode), which gives plugins a chance to
override the rel's default ideas about row count.
getRows in interface RelNodegetRows in class AbstractRelNodepublic static double estimateRowCount(RelNode rel)
rel - node representing UNION ALLCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.