Package org.apache.calcite.rel
Class BiRel
java.lang.Object
org.apache.calcite.rel.AbstractRelNode
org.apache.calcite.rel.BiRel
- All Implemented Interfaces:
Cloneable,RelOptNode,RelNode
- Direct Known Subclasses:
Correlate,Join,RepeatUnion
Abstract base class for relational expressions with a two inputs.
It is not required that two-input relational expressions use this class as a base class. However, default implementations of methods make life easier.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.rel.RelNode
RelNode.Context -
Field Summary
FieldsFields inherited from class org.apache.calcite.rel.AbstractRelNode
digest, id, rowType, traitSet -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBiRel(RelOptCluster cluster, RelTraitSet traitSet, RelNode left, RelNode right) -
Method Summary
Modifier and TypeMethodDescriptionvoidchildrenAccept(RelVisitor visitor) Interacts with theRelVisitorin avisitor patternto traverse the tree of relational expressions.Describes the inputs and attributes of this relational expression.Returns an array of this relational expression's inputs.getLeft()getRight()voidreplaceInput(int ordinalInParent, RelNode p) Replaces theordinalInParentth input.Methods inherited from class org.apache.calcite.rel.AbstractRelNode
accept, accept, collectVariablesSet, collectVariablesUsed, computeSelfCost, copy, deepEquals, deepHashCode, deriveRowType, equals, estimateRowCount, 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.RelNode
explain, fieldIsNullable, stripped
-
Field Details
-
left
-
right
-
-
Constructor Details
-
BiRel
-
-
Method Details
-
childrenAccept
Description copied from interface:RelNodeInteracts with theRelVisitorin avisitor patternto traverse the tree of relational expressions.- Specified by:
childrenAcceptin interfaceRelNode- Overrides:
childrenAcceptin classAbstractRelNode- Parameters:
visitor- Visitor that will traverse the tree of relational expressions
-
getInputs
Description copied from interface:RelNodeReturns an array of this relational expression's inputs. If there are no inputs, returns an empty list, notnull.- Specified by:
getInputsin interfaceRelNode- Specified by:
getInputsin interfaceRelOptNode- Overrides:
getInputsin classAbstractRelNode- Returns:
- Array of this relational expression's inputs
-
getLeft
-
getRight
-
replaceInput
Description copied from interface:RelNodeReplaces theordinalInParentth input. You must override this method if you overrideRelNode.getInputs().- Specified by:
replaceInputin interfaceRelNode- Overrides:
replaceInputin classAbstractRelNode- Parameters:
ordinalInParent- Position of the child input, 0 is the firstp- New node that should be put at positionordinalInParent
-
explainTerms
Description copied from class:AbstractRelNodeDescribes the inputs and attributes of this relational expression. Each node should callsuper.explainTerms, then call theRelWriter.input(String, RelNode)andRelWriter.item(String, Object)methods for each input and attribute.- Overrides:
explainTermsin classAbstractRelNode- Parameters:
pw- Plan writer- Returns:
- Plan writer for fluent-explain pattern
-