public class LogicalValues extends Values
Values
not targeted at any particular engine or calling convention.digest, id, rowType, traitSet| Constructor and Description |
|---|
LogicalValues(RelInput input)
Creates a LogicalValues by parsing serialized output.
|
LogicalValues(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Deprecated.
|
LogicalValues(RelOptCluster cluster,
RelTraitSet traitSet,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Creates a LogicalValues.
|
| Modifier and Type | Method and Description |
|---|---|
RelNode |
accept(RelShuttle shuttle)
Accepts a visit from a shuttle.
|
RelNode |
copy(RelTraitSet traitSet,
List<RelNode> inputs)
Creates a copy of this relational expression, perhaps changing traits and
inputs.
|
static LogicalValues |
create(RelOptCluster cluster,
RelDataType rowType,
com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
Creates a LogicalValues.
|
static LogicalValues |
createEmpty(RelOptCluster cluster,
RelDataType rowType)
Creates a LogicalValues that outputs no rows of a given row type.
|
static LogicalValues |
createOneRow(RelOptCluster cluster)
Creates a LogicalValues that outputs one row and one column.
|
computeSelfCost, deriveRowType, explainTerms, getRows, getTuples, getTuplesaccept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeDigest, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getInputs, getQuery, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesStopped, isDistinct, isKey, isValid, metadata, onRegister, recomputeDigest, register, replaceInput, sole, toStringpublic LogicalValues(RelOptCluster cluster, RelTraitSet traitSet, 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(RelOptCluster cluster, RelDataType rowType, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
public LogicalValues(RelInput input)
public static LogicalValues create(RelOptCluster cluster, RelDataType rowType, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<RexLiteral>> tuples)
public RelNode copy(RelTraitSet traitSet, List<RelNode> inputs)
RelNodeSub-classes with other important attributes are encouraged to create variants of this method with more parameters.
copy in interface RelNodecopy in class AbstractRelNodetraitSet - Trait setinputs - Inputspublic static LogicalValues createEmpty(RelOptCluster cluster, RelDataType rowType)
public static LogicalValues createOneRow(RelOptCluster cluster)
public RelNode accept(RelShuttle shuttle)
RelNodeaccept in interface RelNodeaccept in class AbstractRelNodeshuttle - ShuttleCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.