Class ElasticsearchRules
- java.lang.Object
-
- org.apache.calcite.adapter.elasticsearch.ElasticsearchRules
-
class ElasticsearchRules extends java.lang.Object
Rules and relational operators forELASTICSEARCH
calling convention.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ElasticsearchRules.ElasticsearchAggregateRule
Rule to convert anLogicalAggregate
to anElasticsearchAggregate
.(package private) static class
ElasticsearchRules.ElasticsearchConverterRule
Base class for planner rules that convert a relational expression to Elasticsearch calling convention.private static class
ElasticsearchRules.ElasticsearchFilterRule
Rule to convert aLogicalFilter
to anElasticsearchFilter
.private static class
ElasticsearchRules.ElasticsearchProjectRule
Rule to convert aLogicalProject
to anElasticsearchProject
.private static class
ElasticsearchRules.ElasticsearchSortRule
Rule to convert aSort
to anElasticsearchSort
.(package private) static class
ElasticsearchRules.RexToElasticsearchTranslator
Translator fromRexNode
to strings in Elasticsearch's expression language.
-
Field Summary
Fields Modifier and Type Field Description (package private) static RelOptRule[]
RULES
-
Constructor Summary
Constructors Modifier Constructor Description private
ElasticsearchRules()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.util.List<java.lang.String>
elasticsearchFieldNames(RelDataType rowType)
(package private) static java.lang.String
isItem(RexCall call)
Returns 'string' if it is a call to item['string'], null otherwise.(package private) static java.lang.String
quote(java.lang.String s)
(package private) static java.lang.String
stripQuotes(java.lang.String s)
-
-
-
Field Detail
-
RULES
static final RelOptRule[] RULES
-
-
Method Detail
-
isItem
static java.lang.String isItem(RexCall call)
Returns 'string' if it is a call to item['string'], null otherwise.- Parameters:
call
- current relational expression- Returns:
- literal value
-
elasticsearchFieldNames
static java.util.List<java.lang.String> elasticsearchFieldNames(RelDataType rowType)
-
quote
static java.lang.String quote(java.lang.String s)
-
stripQuotes
static java.lang.String stripQuotes(java.lang.String s)
-
-