Class TranslationAwareExpressionQuery

java.lang.Object
org.elasticsearch.xpack.esql.core.querydsl.query.Query
org.elasticsearch.xpack.esql.querydsl.query.TranslationAwareExpressionQuery

public class TranslationAwareExpressionQuery extends Query
Expressions that store their own QueryBuilder and implement TranslationAware can use TranslationAwareExpressionQuery to wrap their QueryBuilder, instead of using the other existing Query implementations.
  • Constructor Details

    • TranslationAwareExpressionQuery

      public TranslationAwareExpressionQuery(Source source, QueryBuilder queryBuilder)
  • Method Details

    • asBuilder

      protected QueryBuilder asBuilder()
      Description copied from class: Query
      Used internally to convert to retrieve a QueryBuilder by queries.
      Specified by:
      asBuilder in class Query
    • innerToString

      protected String innerToString()
      Description copied from class: Query
      Used by Query.toString() to produce a pretty string.
      Specified by:
      innerToString in class Query
    • scorable

      public boolean scorable()
      Description copied from class: Query
      Defines whether a query should contribute to the overall score
      Overrides:
      scorable in class Query
    • containsPlan

      public boolean containsPlan()
      Description copied from class: Query
      Does the result of calling Query.asBuilder() need the plan to serialize itself?
      Specified by:
      containsPlan in class Query