Class DistanceFeatureQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.DistanceFeatureQuery
- All Implemented Interfaces:
QueryVariant,JsonpSerializable,TaggedUnion<DistanceFeatureQuery.Kind,DistanceFeatureQueryVariant>
@JsonpDeserializable
public class DistanceFeatureQuery
extends Object
implements TaggedUnion<DistanceFeatureQuery.Kind,DistanceFeatureQueryVariant>, QueryVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_get()_kind()Get the of the kind of variant held by this object.Query variant kind.date()Get thedatevariant value.geo()Get thegeovariant value.booleanisDate()Is this variant instance of kinddate?booleanisGeo()Is this variant instance of kindgeo?booleanIs this variant instance of kinduntyped?static DistanceFeatureQueryvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()untyped()Get theuntypedvariant value.Methods 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
-
-
Constructor Details
-
DistanceFeatureQuery
-
-
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<DistanceFeatureQuery.Kind,DistanceFeatureQueryVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<DistanceFeatureQuery.Kind,DistanceFeatureQueryVariant>
-
of
public static DistanceFeatureQuery of(Function<DistanceFeatureQuery.Builder, ObjectBuilder<DistanceFeatureQuery>> fn) -
isDate
public boolean isDate()Is this variant instance of kinddate? -
date
Get thedatevariant value.- Throws:
IllegalStateException- if the current variant is not of thedatekind.
-
isGeo
public boolean isGeo()Is this variant instance of kindgeo? -
geo
Get thegeovariant value.- Throws:
IllegalStateException- if the current variant is not of thegeokind.
-
isUntyped
public boolean isUntyped()Is this variant instance of kinduntyped? -
untyped
Get theuntypedvariant value.- Throws:
IllegalStateException- if the current variant is not of theuntypedkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-