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

Method create

core/src/main/java/org/apache/calcite/rex/RexProgram.java:197–205  ·  view source on GitHub ↗

Creates a program which calculates projections and filters rows based upon a condition. Does not attempt to eliminate common sub-expressions. @param projectExprs Project expressions @param conditionExpr Condition on which to filter rows, or null if rows are not to be filtered

(
      RelDataType inputRowType,
      List<? extends RexNode> projectExprs,
      @Nullable RexNode conditionExpr,
      RelDataType outputRowType,
      RexBuilder rexBuilder)

Source from the content-addressed store, hash-verified

195 * @return A program
196 */
197 public static RexProgram create(
198 RelDataType inputRowType,
199 List<? extends RexNode> projectExprs,
200 @Nullable RexNode conditionExpr,
201 RelDataType outputRowType,
202 RexBuilder rexBuilder) {
203 return create(inputRowType, projectExprs, conditionExpr,
204 outputRowType.getFieldNames(), rexBuilder);
205 }
206
207 /**
208 * Creates a program which calculates projections and filters rows based

Callers 15

trimFieldsMethod · 0.95
implementMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
setOpApplyMethod · 0.95
unifyAggregatesMethod · 0.95
onMatchMethod · 0.95
LogicalCalcMethod · 0.95

Calls 10

addProjectMethod · 0.95
addConditionMethod · 0.95
getProgramMethod · 0.95
getFieldNamesMethod · 0.65
sizeMethod · 0.65
getMethod · 0.65
getExpressionListMethod · 0.65
addMethod · 0.65
getRowTypeMethod · 0.65
getExpressionMethod · 0.65

Tested by 1

toRelMethod · 0.76