Package org.apache.calcite.rel.core
Class Intersect
java.lang.Object
org.apache.calcite.rel.AbstractRelNode
org.apache.calcite.rel.core.SetOp
org.apache.calcite.rel.core.Intersect
- All Implemented Interfaces:
Cloneable,RelOptNode,Hintable,RelNode
- Direct Known Subclasses:
Bindables.BindableIntersect,EnumerableIntersect,JdbcRules.JdbcIntersect,LogicalIntersect
Relational expression that returns the intersection of the rows of its
inputs.
If "all" is true, performs then multiset intersection; otherwise, performs set set intersection (implying no duplicates in the results).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.rel.RelNode
RelNode.Context -
Field Summary
Fields inherited from class org.apache.calcite.rel.AbstractRelNode
digest, id, rowType, traitSet -
Constructor Summary
ConstructorsModifierConstructorDescriptionIntersect(RelOptCluster cluster, RelTraitSet traits, List<RelHint> hints, List<RelNode> inputs, boolean all) Creates an Intersect.protectedIntersect(RelOptCluster cluster, RelTraitSet traits, List<RelNode> inputs, boolean all) Creates an Intersect.protectedCreates an Intersect by parsing serialized output. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns an estimate of the number of rows this relational expression will return.Methods inherited from class org.apache.calcite.rel.core.SetOp
copy, copy, deriveRowType, explainTerms, getHints, getInputs, isHomogeneous, replaceInputMethods inherited from class org.apache.calcite.rel.AbstractRelNode
accept, accept, childrenAccept, 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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.calcite.rel.hint.Hintable
attachHints, withHintsMethods inherited from interface org.apache.calcite.rel.RelNode
explain, fieldIsNullable, stripped
-
Constructor Details
-
Intersect
public Intersect(RelOptCluster cluster, RelTraitSet traits, List<RelHint> hints, List<RelNode> inputs, boolean all) Creates an Intersect. -
Intersect
Creates an Intersect. -
Intersect
Creates an Intersect by parsing serialized output.
-
-
Method Details
-
estimateRowCount
Description copied from interface:RelNodeReturns an estimate of the number of rows this relational expression will return.NOTE 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.- Specified by:
estimateRowCountin interfaceRelNode- Overrides:
estimateRowCountin classAbstractRelNode- Parameters:
mq- Metadata query- Returns:
- Estimate of the number of rows this relational expression will return
-