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:
java.lang.Cloneable
,RelOptNode
,RelNode
- Direct Known Subclasses:
EnumerableIntersect
,JdbcRules.JdbcIntersect
,LogicalIntersect
public abstract class Intersect extends SetOp
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
-
-
Constructor Summary
Constructors Modifier Constructor Description Intersect(RelOptCluster cluster, RelTraitSet traits, java.util.List<RelNode> inputs, boolean all)
Creates an Intersect.protected
Intersect(RelInput input)
Creates an Intersect by parsing serialized output.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
estimateRowCount(RelMetadataQuery mq)
Returns 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, getInputs, isHomogeneous, replaceInput
-
Methods inherited from class org.apache.calcite.rel.AbstractRelNode
accept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, computeSelfCost, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, sole, toString
-
-
-
-
Constructor Detail
-
Intersect
public Intersect(RelOptCluster cluster, RelTraitSet traits, java.util.List<RelNode> inputs, boolean all)
Creates an Intersect.
-
Intersect
protected Intersect(RelInput input)
Creates an Intersect by parsing serialized output.
-
-
Method Detail
-
estimateRowCount
public double estimateRowCount(RelMetadataQuery mq)
Description copied from interface:RelNode
Returns 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:
estimateRowCount
in interfaceRelNode
- Overrides:
estimateRowCount
in classAbstractRelNode
- Parameters:
mq
- Metadata query- Returns:
- Estimate of the number of rows this relational expression will return
-
-