Class GeoGridQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.GeoGridQuery
- All Implemented Interfaces:
QueryVariant,JsonpSerializable,TaggedUnion<GeoGridQuery.Kind,Object>
@JsonpDeserializable
public class GeoGridQuery
extends QueryBase
implements TaggedUnion<GeoGridQuery.Kind,Object>, QueryVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final GeoGridQuery.Kind_kind()Get the of the kind of variant held by this object.Query variant kind.final Stringfield()Required - The target fieldgeohash()Get thegeohashvariant value.geohex()Get thegeohexvariant value.geotile()Get thegeotilevariant value.booleanIs this variant instance of kindgeohash?booleanisGeohex()Is this variant instance of kindgeohex?booleanIs this variant instance of kindgeotile?static GeoGridQueryvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected static voidtoString()Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serializeInternal, setupQueryBaseDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant
_toQuery
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_queryKind
Query variant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<GeoGridQuery.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<GeoGridQuery.Kind,Object>
-
of
-
field
Required - The target field -
isGeotile
public boolean isGeotile()Is this variant instance of kindgeotile? -
geotile
Get thegeotilevariant value.- Throws:
IllegalStateException- if the current variant is not of thegeotilekind.
-
isGeohash
public boolean isGeohash()Is this variant instance of kindgeohash? -
geohash
Get thegeohashvariant value.- Throws:
IllegalStateException- if the current variant is not of thegeohashkind.
-
isGeohex
public boolean isGeohex()Is this variant instance of kindgeohex? -
geohex
Get thegeohexvariant value.- Throws:
IllegalStateException- if the current variant is not of thegeohexkind.
-
serialize
Description copied from class:QueryBaseSerialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable- Overrides:
serializein classQueryBase
-
toString
-
setupGeoGridQueryDeserializer
-