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
,org.apache.calcite.plan.RelOptNode
,org.apache.calcite.rel.hint.Hintable
,org.apache.calcite.rel.RelNode
public class LogicalSnapshot extends org.apache.calcite.rel.core.Snapshot
Sub-class ofSnapshot
not targeted at any particular engine or calling convention. The class was copied over because of * CALCITE-4554. *Line 114 ~ 124: Calcite only supports timestamp type as period type, but Flink supports both Timestamp and TimestampLtz. Should be removed once calcite support TimestampLtz as period type.
-
-
Constructor Summary
Constructors Constructor Description LogicalSnapshot(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, List<org.apache.calcite.rel.hint.RelHint> hints, org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode period)
Creates a LogicalSnapshot.LogicalSnapshot(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode period)
Creates a LogicalSnapshot.LogicalSnapshot(org.apache.calcite.rel.RelInput input)
Creates a LogicalSnapshot by parsing serialized output.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.calcite.rel.core.Snapshot
copy(org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode period)
static LogicalSnapshot
create(org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode period)
Creates a LogicalSnapshot.boolean
isValid(org.apache.calcite.util.Litmus litmus, org.apache.calcite.rel.RelNode.Context context)
org.apache.calcite.rel.RelNode
withHints(List<org.apache.calcite.rel.hint.RelHint> hintList)
-
Methods inherited from class org.apache.calcite.rel.core.Snapshot
accept, copy, explainTerms, getHints, getPeriod
-
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
-
-
-
-
Constructor Detail
-
LogicalSnapshot
public LogicalSnapshot(org.apache.calcite.rel.RelInput input)
Creates a LogicalSnapshot by parsing serialized output.
-
LogicalSnapshot
public LogicalSnapshot(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, List<org.apache.calcite.rel.hint.RelHint> hints, org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.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
public LogicalSnapshot(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.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 expressioninput
- Input relational expressionperiod
- Timestamp expression which as the table was at the given time in the past
-
-
Method Detail
-
copy
public org.apache.calcite.rel.core.Snapshot copy(org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode period)
- Specified by:
copy
in classorg.apache.calcite.rel.core.Snapshot
-
create
public static LogicalSnapshot create(org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode period)
Creates a LogicalSnapshot.
-
isValid
public boolean isValid(org.apache.calcite.util.Litmus litmus, org.apache.calcite.rel.RelNode.Context context)
- Specified by:
isValid
in interfaceorg.apache.calcite.rel.RelNode
- Overrides:
isValid
in classorg.apache.calcite.rel.core.Snapshot
-
withHints
public org.apache.calcite.rel.RelNode withHints(List<org.apache.calcite.rel.hint.RelHint> hintList)
-
-