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

Method Project

core/src/main/java/org/apache/calcite/rel/core/Project.java:92–107  ·  view source on GitHub ↗

Creates a Project. @param cluster Cluster that this relational expression belongs to @param traits Traits of this relational expression @param hints Hints of this relation expression @param input Input relational expression @param projects List of expressions for the input columns @param r

(
      RelOptCluster cluster,
      RelTraitSet traits,
      List<RelHint> hints,
      RelNode input,
      List<? extends RexNode> projects,
      RelDataType rowType,
      Set<CorrelationId> variableSet)

Source from the content-addressed store, hash-verified

90 * to be used by nested expressions
91 */
92 @SuppressWarnings("method.invocation.invalid")
93 protected Project(
94 RelOptCluster cluster,
95 RelTraitSet traits,
96 List<RelHint> hints,
97 RelNode input,
98 List<? extends RexNode> projects,
99 RelDataType rowType,
100 Set<CorrelationId> variableSet) {
101 super(cluster, traits, input);
102 this.exps = ImmutableList.copyOf(projects);
103 this.hints = ImmutableList.copyOf(hints);
104 this.rowType = requireNonNull(rowType, "rowType");
105 this.variablesSet = ImmutableSet.copyOf(variableSet);
106 assert isValid(Litmus.THROW, null);
107 }
108
109 @Deprecated // to be removed before 2.0
110 protected Project(

Callers

nothing calls this directly

Calls 12

isValidMethod · 0.95
discardMethod · 0.95
transformMethod · 0.95
copyOfMethod · 0.65
ofMethod · 0.65
getClusterMethod · 0.65
getTraitSetMethod · 0.65
getInputMethod · 0.65
getExpressionListMethod · 0.65
getRowTypeMethod · 0.65
orElseMethod · 0.65
getIntegerListMethod · 0.65

Tested by

no test coverage detected