public class LogicalSnapshot
extends org.apache.calcite.rel.core.Snapshot
Snapshot
not targeted at any particular engine
or calling convention. The class was copied over because of * CALCITE-4554. *
Line 80 ~ 91: 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 and Description |
---|
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.
|
Modifier and Type | Method and 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) |
accept, copy, explainTerms, getPeriod
childrenAccept, deriveRowType, estimateRowCount, getInput, getInputs, replaceInput
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
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)
Use create(org.apache.calcite.rel.RelNode, org.apache.calcite.rex.RexNode)
unless you know what you're doing.
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 pastpublic 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)
copy
in class org.apache.calcite.rel.core.Snapshot
public static LogicalSnapshot create(org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode period)
public boolean isValid(org.apache.calcite.util.Litmus litmus, org.apache.calcite.rel.RelNode.Context context)
isValid
in interface org.apache.calcite.rel.RelNode
isValid
in class org.apache.calcite.rel.core.Snapshot
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.