Class CalciteUtils

java.lang.Object
org.apache.calcite.adapter.elasticsearch.CalciteUtils

public class CalciteUtils extends Object
  • Field Details

    • RULE_PREDICATE

      public static final Predicate<org.apache.calcite.plan.RelOptRule> 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

      public static Set<org.apache.calcite.plan.RelOptRule> 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