public class RexProgramRewriter extends Object
Constructor and Description |
---|
RexProgramRewriter() |
Modifier and Type | Method and Description |
---|---|
static org.apache.calcite.rex.RexProgram |
rewriteWithFieldProjection(org.apache.calcite.rex.RexProgram rexProgram,
org.apache.calcite.rel.type.RelDataType inputRowType,
org.apache.calcite.rex.RexBuilder rexBuilder,
int[] usedFields)
Generates a new RexProgram with used input fields.
|
public static org.apache.calcite.rex.RexProgram rewriteWithFieldProjection(org.apache.calcite.rex.RexProgram rexProgram, org.apache.calcite.rel.type.RelDataType inputRowType, org.apache.calcite.rex.RexBuilder rexBuilder, int[] usedFields)
rexProgram
- original RexPrograminputRowType
- input row typerexBuilder
- builder for Rex expressionsusedFields
- indices of used input fieldsCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.