Package org.apache.calcite.adapter.elasticsearch
Query provider based on an Elasticsearch2 DB.
-
Interface Summary Interface Description ElasticsearchConstants Internal constants referenced in this package.ElasticsearchJson.Aggregation Identifies all aggregationsElasticsearchJson.HasAggregations Allows traversing aggregations treeElasticsearchRel Relational expression that uses Elasticsearch calling convention.PredicateAnalyzer.Expression Empty interface; exists only to define type hierarchyPredicateAnalyzer.TerminalExpression Empty interface; exists only to define type hierarchy -
Class Summary Class Description ElasticsearchAggregate Implementation ofAggregate
relational expression for ElasticSearch.ElasticsearchEnumerators Util functions which convertElasticsearchJson.SearchHit
into calcite specific return type (map, object[], list etc.)ElasticsearchFilter Implementation of aFilter
relational expression in Elasticsearch.ElasticsearchFilter.PredicateAnalyzerTranslator New version of translator which uses visitor pattern and allow to process more complex (boolean) predicates.ElasticsearchFilter.Translator TranslatesRexNode
expressions into Elasticsearch expression strings.ElasticsearchJson Internal objects (and deserializers) used to parse Elasticsearch results (which are in JSON format).ElasticsearchJson.Aggregations ElasticsearchJson.Aggregation
container.ElasticsearchJson.AggregationsDeserializer Allows to de-serialize nested aggregation structures.ElasticsearchJson.Bucket A bucket represents a criteria to which all documents that fall in it adhere to.ElasticsearchJson.GroupValue Distinguishes fromElasticsearchJson.MultiValue
.ElasticsearchJson.MultiBucketsAggregation An aggregation that returns multiple bucketsElasticsearchJson.MultiValue Multi value aggregatoin like StatsElasticsearchJson.Result Response from ElasticElasticsearchJson.RowKey Identifies a calcite row (as in relational algebra)ElasticsearchJson.SearchHit Concrete result record which matched the query.ElasticsearchJson.SearchHits Similar toSearchHits
in ES.ElasticsearchMapping Stores Elasticsearch mapping information for particular index/type.ElasticsearchMapping.Datatype Represents elastic data-type, likelong
,keyword
,date
etc.ElasticsearchProject Implementation ofProject
relational expression in Elasticsearch.ElasticsearchRel.Implementor Callback for the implementation process that converts a tree ofElasticsearchRel
nodes into an Elasticsearch query.ElasticsearchRules Rules and relational operators forELASTICSEARCH
calling convention.ElasticsearchRules.ElasticsearchAggregateRule Rule to convert anLogicalAggregate
to anElasticsearchAggregate
.ElasticsearchRules.ElasticsearchConverterRule Base class for planner rules that convert a relational expression to Elasticsearch calling convention.ElasticsearchRules.ElasticsearchFilterRule Rule to convert aLogicalFilter
to anElasticsearchFilter
.ElasticsearchRules.ElasticsearchProjectRule Rule to convert aLogicalProject
to anElasticsearchProject
.ElasticsearchRules.ElasticsearchSortRule Rule to convert aSort
to anElasticsearchSort
.ElasticsearchRules.RexToElasticsearchTranslator Translator fromRexNode
to strings in Elasticsearch's expression language.ElasticsearchSchema Schema mapped onto an index of ELASTICSEARCH types.ElasticsearchSchemaFactory Factory that creates anElasticsearchSchema
.ElasticsearchSearchResult Internal object used to parse elastic search result.ElasticsearchSearchResult.SearchHit Concrete result record which matched the query.ElasticsearchSearchResult.SearchHits Similar toSearchHits
in ES.ElasticsearchSort Implementation ofSort
relational expression in Elasticsearch.ElasticsearchTable Table based on an Elasticsearch type.ElasticsearchTable.ElasticsearchQueryable<T> Implementation ofQueryable
based on aElasticsearchTable
.ElasticsearchTableScan Relational expression representing a scan of an Elasticsearch type.ElasticsearchToEnumerableConverter Relational expression representing a scan of a table in an Elasticsearch data source.ElasticsearchToEnumerableConverterRule Rule to convert a relational expression fromElasticsearchRel.CONVENTION
toEnumerableConvention
.ElasticsearchTransport Set of predefined functions for REST interaction with elastic search API.ElasticsearchTransport.HttpFunction Basic rest operations interacting with elastic cluster.ElasticsearchTransport.JsonParserFn<T> Parses HTTP response into some class using jackson API.MapProjectionFieldVisitor Visitor that extracts the actual field name from an item expression.PredicateAnalyzer Query predicate analyzer.PredicateAnalyzer.CastExpression SQL cast:cast(col as INTEGER)
PredicateAnalyzer.CompoundQueryExpression Builds conjunctions / disjunctions based on existing expressionsPredicateAnalyzer.LiteralExpression Literal like'foo' or 42 or true
etc.PredicateAnalyzer.NamedFieldExpression Used for bind variablesPredicateAnalyzer.NotLikeConverter Converts expressions of the form NOT(LIKE(...)) into NOT_LIKE(...)PredicateAnalyzer.QueryExpression Main expression operators (likeequals
,gt
,exists
etc.)PredicateAnalyzer.SimpleQueryExpression Usually basic expression of typea = 'val'
orb > 42
.PredicateAnalyzer.Visitor TraversesRexNode
tree and builds ES query.PredicateAnalyzer.Visitor.SwapResult Holder class for a pair of expressions.QueryBuilders Utility class to generate elastic search queries.QueryBuilders.BoolQueryBuilder Query for boolean logicQueryBuilders.ConstantScoreQueryBuilder A query that wraps a filter and simply returns a constant score equal to the query boost for every document in the filter.QueryBuilders.ExistsQueryBuilder Constructs a query that only match on documents that the field has a value in them.QueryBuilders.MatchAllQueryBuilder A query that matches on all documents.QueryBuilders.QueryBuilder Base class to build ES queriesQueryBuilders.RangeQueryBuilder A Query that matches documents within an range of terms.QueryBuilders.RegexpQueryBuilder A Query that does fuzzy matching for a specific value.QueryBuilders.TermQueryBuilder A Query that matches documents containing a term.QueryBuilders.TermsQueryBuilder A filter for a field based on several terms matching on any of them.Scrolling "Iterator" which retrieves results lazily and in batches.Scrolling.AutoClosingIterator Observes when existing iterator has ended and clears context (scroll) if any.Scrolling.SequentialIterator Iterator which consumes currentscrollId
until full search result is fetched orlimit
is reached. -
Enum Summary Enum Description ElasticsearchMethod Builtin methods in the Elasticsearch adapter.ElasticsearchVersion Identifies current ES version at runtime. -
Exception Summary Exception Description ExpressionNotAnalyzableException Thrown whenRelNode
expression can't be processed (or converted into ES query)PredicateAnalyzer.ExpressionNotAnalyzableException Thrown whenRelNode
expression can't be processed (or converted into ES query)PredicateAnalyzer.PredicateAnalyzerException Internal exception