public class RexProgramExtractor extends Object
Constructor and Description |
---|
RexProgramExtractor() |
Modifier and Type | Method and Description |
---|---|
static scala.Tuple2<Expression[],org.apache.calcite.rex.RexNode[]> |
extractConjunctiveConditions(org.apache.calcite.rex.RexProgram rexProgram,
org.apache.calcite.rex.RexBuilder rexBuilder,
FunctionCatalog catalog)
Extract condition from RexProgram and convert it into independent CNF expressions.
|
static int[] |
extractRefInputFields(org.apache.calcite.rex.RexProgram rexProgram)
Extracts the indices of input fields which accessed by the RexProgram.
|
static String[][] |
extractRefNestedInputFields(org.apache.calcite.rex.RexProgram rexProgram,
int[] usedFields)
Extracts the name of nested input fields accessed by the RexProgram and returns the
prefix of the accesses.
|
public static int[] extractRefInputFields(org.apache.calcite.rex.RexProgram rexProgram)
rexProgram
- The RexProgram to analyzepublic static scala.Tuple2<Expression[],org.apache.calcite.rex.RexNode[]> extractConjunctiveConditions(org.apache.calcite.rex.RexProgram rexProgram, org.apache.calcite.rex.RexBuilder rexBuilder, FunctionCatalog catalog)
rexProgram
- The RexProgram to analyzerexBuilder
- (undocumented)catalog
- (undocumented)public static String[][] extractRefNestedInputFields(org.apache.calcite.rex.RexProgram rexProgram, int[] usedFields)
rexProgram
- The RexProgram to analyzeusedFields
- (undocumented)Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.