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)
| 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 |