public abstract class Intersect extends SetOp
If "all" is true, performs then multiset intersection; otherwise, performs set set intersection (implying no duplicates in the results).
digest, id, rowType, traitSet| Modifier | Constructor and Description |
|---|---|
protected |
Intersect(RelInput input)
Creates an Intersect by parsing serialized output.
|
|
Intersect(RelOptCluster cluster,
RelTraitSet traits,
List<RelNode> inputs,
boolean all)
Creates an Intersect.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getRows()
Returns an estimate of the number of rows this relational expression will
return.
|
boolean |
isKey(ImmutableBitSet columns)
Returns whether the result of this relational expression is uniquely
identified by this columns with the given ordinals.
|
copy, copy, deriveRowType, explainTerms, getInputs, isHomogeneous, 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, toStringpublic Intersect(RelOptCluster cluster, RelTraitSet traits, List<RelNode> inputs, boolean all)
protected Intersect(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 boolean isKey(ImmutableBitSet columns)
RelNodeFor example, if this relational expression is a LogicalTableScan to T(A, B, C, D) whose key is (A, B), then isKey([0, 1]) yields true, and isKey([0]) and isKey([0, 2]) yields false.
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.