Interface RewriteableAware
- All Superinterfaces:
TranslationAware
- All Known Implementing Classes:
FullTextFunction,Knn,Kql,Match,MatchOperator,MatchPhrase,MultiMatch,QueryString,Term
Defines objects that need to go through the rewrite phase.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xpack.esql.capabilities.TranslationAware
TranslationAware.FinishedTranslatable, TranslationAware.SingleValueTranslationAware, TranslationAware.Translatable -
Method Summary
Modifier and TypeMethodDescriptionreplaceQueryBuilder(QueryBuilder queryBuilder) Replaces the current query builder with a rewritten iteration.Methods inherited from interface org.elasticsearch.xpack.esql.capabilities.TranslationAware
asLuceneQuery, asQuery, translatable
-
Method Details
-
queryBuilder
QueryBuilder queryBuilder()- Returns:
- The current active query builder.
-
replaceQueryBuilder
Replaces the current query builder with a rewritten iteration. This happens multiple times through the rewrite phase until the final iteration of the query builder is stored.- Parameters:
queryBuilder- QueryBuilder- Returns:
- Expression defining the active QueryBuilder
-