public class LogicalValues extends Values
Values
not targeted at any particular engine or
calling convention.
Temporarily copy from calcite to cherry-pick [CALCITE-5107] and will be removed when upgrade the latest calcite.
hints, IS_EMPTY, IS_EMPTY_J, IS_NOT_EMPTY, tuples
Constructor and Description |
---|
LogicalValues(org.apache.calcite.rel.RelInput input)
Creates a LogicalValues by parsing serialized output.
|
LogicalValues(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.rel.type.RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Deprecated.
|
LogicalValues(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traitSet,
List<org.apache.calcite.rel.hint.RelHint> hints,
org.apache.calcite.rel.type.RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Creates a LogicalValues.
|
LogicalValues(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traitSet,
org.apache.calcite.rel.type.RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Creates a LogicalValues.
|
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.rel.RelNode |
accept(org.apache.calcite.rel.RelShuttle shuttle) |
org.apache.calcite.rel.RelNode |
copy(org.apache.calcite.plan.RelTraitSet traitSet,
List<org.apache.calcite.rel.RelNode> inputs) |
static LogicalValues |
create(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.rel.type.RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Creates a LogicalValues.
|
static LogicalValues |
createEmpty(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.rel.type.RelDataType rowType)
Creates a LogicalValues that outputs no rows of a given row type.
|
static LogicalValues |
createOneRow(org.apache.calcite.plan.RelOptCluster cluster)
Creates a LogicalValues that outputs one row and one column.
|
org.apache.calcite.rel.RelNode |
withHints(List<org.apache.calcite.rel.hint.RelHint> hintList) |
computeSelfCost, deriveRowType, estimateRowCount, explainTerms, getHints, getTuples, getTuples, isEmpty, isNotEmpty
accept, childrenAccept, collectVariablesSet, collectVariablesUsed, deepEquals, deepHashCode, equals, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getInputs, getRelDigest, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesSet, hashCode, isEnforcer, isValid, metadata, onRegister, recomputeDigest, register, replaceInput, sole, toString
public LogicalValues(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, List<org.apache.calcite.rel.hint.RelHint> hints, org.apache.calcite.rel.type.RelDataType rowType, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Use create(org.apache.calcite.plan.RelOptCluster, org.apache.calcite.rel.type.RelDataType, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<org.apache.calcite.rex.RexLiteral>>)
unless you know what you're doing.
cluster
- Cluster that this relational expression belongs tohints
- Hints for this noderowType
- Row type for tuples produced by this reltuples
- 2-dimensional array of tuple values to be produced; outer list contains tuples;
each inner list is one tuple; all tuples must be of same length, conforming to rowTypepublic LogicalValues(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.type.RelDataType rowType, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Use create(org.apache.calcite.plan.RelOptCluster, org.apache.calcite.rel.type.RelDataType, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<org.apache.calcite.rex.RexLiteral>>)
unless you know what you're doing.
cluster
- Cluster that this relational expression belongs torowType
- Row type for tuples produced by this reltuples
- 2-dimensional array of tuple values to be produced; outer list contains tuples;
each inner list is one tuple; all tuples must be of same length, conforming to rowType@Deprecated public LogicalValues(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.rel.type.RelDataType rowType, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
public LogicalValues(org.apache.calcite.rel.RelInput input)
public static LogicalValues create(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.rel.type.RelDataType rowType, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
public org.apache.calcite.rel.RelNode copy(org.apache.calcite.plan.RelTraitSet traitSet, List<org.apache.calcite.rel.RelNode> inputs)
copy
in interface org.apache.calcite.rel.RelNode
copy
in class org.apache.calcite.rel.AbstractRelNode
public static LogicalValues createEmpty(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.rel.type.RelDataType rowType)
public static LogicalValues createOneRow(org.apache.calcite.plan.RelOptCluster cluster)
public org.apache.calcite.rel.RelNode accept(org.apache.calcite.rel.RelShuttle shuttle)
accept
in interface org.apache.calcite.rel.RelNode
accept
in class org.apache.calcite.rel.AbstractRelNode
public org.apache.calcite.rel.RelNode withHints(List<org.apache.calcite.rel.hint.RelHint> hintList)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.