Class DecayFunction
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.DecayFunction
- All Implemented Interfaces:
FunctionScoreVariant,JsonpSerializable,TaggedUnion<DecayFunction.Kind,DecayFunctionVariant>
@JsonpDeserializable
public class DecayFunction
extends Object
implements TaggedUnion<DecayFunction.Kind,DecayFunctionVariant>, FunctionScoreVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFunctionScore variant kind.final DecayFunctionVariant_get()final DecayFunction.Kind_kind()Get the of the kind of variant held by this object.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 kindnumeric?booleanIs this variant instance of kinduntyped?numeric()Get thenumericvariant value.static DecayFunctionvoidserialize(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.FunctionScoreVariant
_toFunctionScore
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
DecayFunction
-
-
Method Details
-
_functionScoreKind
FunctionScore variant kind.- Specified by:
_functionScoreKindin interfaceFunctionScoreVariant
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<DecayFunction.Kind,DecayFunctionVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<DecayFunction.Kind,DecayFunctionVariant>
-
of
-
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.
-
isNumeric
public boolean isNumeric()Is this variant instance of kindnumeric? -
numeric
Get thenumericvariant value.- Throws:
IllegalStateException- if the current variant is not of thenumerickind.
-
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
-