Class GeoDistanceQuery

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

public class GeoDistanceQuery extends Query
  • Constructor Details

    • GeoDistanceQuery

      public GeoDistanceQuery(Source source, String field, double distance, double lat, double lon)
  • Method Details

    • field

      public String field()
    • lat

      public double lat()
    • lon

      public double lon()
    • distance

      public double distance()
    • 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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Query
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals 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
    • 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