Package org.apache.calcite.rel.logical
Class LogicalSnapshot
java.lang.Object
org.apache.calcite.rel.AbstractRelNode
org.apache.calcite.rel.SingleRel
org.apache.calcite.rel.core.Snapshot
org.apache.calcite.rel.logical.LogicalSnapshot
- All Implemented Interfaces:
Cloneable
,RelOptNode
,Hintable
,RelNode
Sub-class of
Snapshot
not targeted at any particular engine or calling convention.-
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
ConstructorDescriptionLogicalSnapshot
(RelOptCluster cluster, RelTraitSet traitSet, List<RelHint> hints, RelNode input, RexNode period) Creates a LogicalSnapshot.LogicalSnapshot
(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RexNode period) Creates a LogicalSnapshot.LogicalSnapshot
(RelInput input) Creates a LogicalSnapshot by parsing serialized output. -
Method Summary
Modifier and TypeMethodDescriptioncopy
(RelTraitSet traitSet, RelNode input, RexNode period) static LogicalSnapshot
Creates a LogicalSnapshot.Returns a new relational expression with the specified hintshintList
.Methods inherited from class org.apache.calcite.rel.core.Snapshot
accept, copy, explainTerms, getHints, getPeriod, isValid
Methods inherited from class org.apache.calcite.rel.SingleRel
childrenAccept, deriveRowType, estimateRowCount, getInput, getInputs, replaceInput
Methods inherited from class org.apache.calcite.rel.AbstractRelNode
accept, collectVariablesSet, collectVariablesUsed, computeSelfCost, deepEquals, deepHashCode, equals, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getRelDigest, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesSet, hashCode, isEnforcer, metadata, onRegister, recomputeDigest, register, sole, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.calcite.rel.hint.Hintable
attachHints
Methods inherited from interface org.apache.calcite.rel.RelNode
explain, fieldIsNullable, stripped
-
Constructor Details
-
LogicalSnapshot
Creates a LogicalSnapshot by parsing serialized output. -
LogicalSnapshot
public LogicalSnapshot(RelOptCluster cluster, RelTraitSet traitSet, List<RelHint> hints, RelNode input, RexNode period) Creates a LogicalSnapshot.Use
create(org.apache.calcite.rel.RelNode, org.apache.calcite.rex.RexNode)
unless you know what you're doing.- Parameters:
cluster
- Cluster that this relational expression belongs totraitSet
- The traits of this relational expressionhints
- Hints for this nodeinput
- Input relational expressionperiod
- Timestamp expression which as the table was at the given time in the past
-
LogicalSnapshot
Creates a LogicalSnapshot.Use
create(org.apache.calcite.rel.RelNode, org.apache.calcite.rex.RexNode)
unless you know what you're doing.- Parameters:
cluster
- Cluster that this relational expression belongs totraitSet
- The traits of this relational expressioninput
- Input relational expressionperiod
- Timestamp expression which as the table was at the given time in the past
-
-
Method Details
-
copy
-
create
Creates a LogicalSnapshot. -
withHints
Description copied from interface:Hintable
Returns a new relational expression with the specified hintshintList
.This method should be overridden by every logical node that supports hint. It is only for internal use during decorrelation.
Sub-class should return a new copy of the relational expression.
The default implementation returns the relational expression directly only because not every kind of relational expression supports hints.
- Returns:
- Relational expression with set up hints
-