Class CalciteUtils
java.lang.Object
org.apache.calcite.adapter.elasticsearch.CalciteUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.calcite.plan.RelOptRule
static final org.apache.calcite.plan.RelOptRule
static final Predicate<org.apache.calcite.plan.RelOptRule>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
analyzePredicate
(org.apache.calcite.rex.RexNode condition) static org.apache.calcite.adapter.elasticsearch.ElasticsearchFilter
createFilter
(org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode condition) static org.apache.calcite.adapter.elasticsearch.ElasticsearchProject
createProject
(org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode input, List<? extends org.apache.calcite.rex.RexNode> projects, org.apache.calcite.rel.type.RelDataType rowType) static Set<org.apache.calcite.plan.RelOptRule>
static org.apache.calcite.rel.convert.ConverterRule
-
Field Details
-
RULE_PREDICATE
-
ELASTIC_DREL_CONVERTER_RULE
public static final org.apache.calcite.plan.RelOptRule ELASTIC_DREL_CONVERTER_RULE -
ENUMERABLE_INTERMEDIATE_PREL_CONVERTER_RULE
public static final org.apache.calcite.plan.RelOptRule ENUMERABLE_INTERMEDIATE_PREL_CONVERTER_RULE
-
-
Constructor Details
-
CalciteUtils
public CalciteUtils()
-
-
Method Details
-
elasticSearchRules
-
getElasticsearchToEnumerableConverterRule
public static org.apache.calcite.rel.convert.ConverterRule getElasticsearchToEnumerableConverterRule() -
createProject
public static org.apache.calcite.adapter.elasticsearch.ElasticsearchProject createProject(org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode input, List<? extends org.apache.calcite.rex.RexNode> projects, org.apache.calcite.rel.type.RelDataType rowType) -
createFilter
public static org.apache.calcite.adapter.elasticsearch.ElasticsearchFilter createFilter(org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode condition) -
analyzePredicate
public static void analyzePredicate(org.apache.calcite.rex.RexNode condition) throws org.apache.calcite.adapter.elasticsearch.PredicateAnalyzer.ExpressionNotAnalyzableException - Throws:
org.apache.calcite.adapter.elasticsearch.PredicateAnalyzer.ExpressionNotAnalyzableException
-