MCPcopy Create free account
hub / github.com/apache/calcite / Values

Method Values

core/src/main/java/org/apache/calcite/rel/core/Values.java:87–99  ·  view source on GitHub ↗

Creates a new Values. Note that tuples passed in become owned by this rel (without a deep copy), so caller must not modify them after this call, otherwise bad things will happen. @param cluster Cluster that this relational expression belongs to @param hints Hints for this node @param rowType

(
      RelOptCluster cluster,
      List<RelHint> hints,
      RelDataType rowType,
      ImmutableList<ImmutableList<RexLiteral>> tuples,
      RelTraitSet traits)

Source from the content-addressed store, hash-verified

85 * tuples must be of same length, conforming to rowType
86 */
87 @SuppressWarnings("method.invocation.invalid")
88 protected Values(
89 RelOptCluster cluster,
90 List<RelHint> hints,
91 RelDataType rowType,
92 ImmutableList<ImmutableList<RexLiteral>> tuples,
93 RelTraitSet traits) {
94 super(cluster, traits);
95 this.rowType = rowType;
96 this.tuples = tuples;
97 this.hints = ImmutableList.copyOf(hints);
98 assert assertRowType();
99 }
100
101 /**
102 * Creates a new Values.

Callers

nothing calls this directly

Calls 6

assertRowTypeMethod · 0.95
copyOfMethod · 0.65
getClusterMethod · 0.65
getRowTypeMethod · 0.65
getTuplesMethod · 0.65
getTraitSetMethod · 0.65

Tested by

no test coverage detected