Class SmoothingModel
java.lang.Object
co.elastic.clients.elasticsearch.core.search.SmoothingModel
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<SmoothingModel.Kind,Object>
@JsonpDeserializable
public class SmoothingModel
extends Object
implements TaggedUnion<SmoothingModel.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final SmoothingModel.Kind_kind()Get the of the kind of variant held by this object.booleanIs this variant instance of kindlaplace?booleanIs this variant instance of kindlinear_interpolation?booleanIs this variant instance of kindstupid_backoff?laplace()Get thelaplacevariant value.Get thelinear_interpolationvariant value.static SmoothingModelvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidGet thestupid_backoffvariant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
SmoothingModel
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<SmoothingModel.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<SmoothingModel.Kind,Object>
-
of
-
isLaplace
public boolean isLaplace()Is this variant instance of kindlaplace? -
laplace
Get thelaplacevariant value.- Throws:
IllegalStateException- if the current variant is not of thelaplacekind.
-
isLinearInterpolation
public boolean isLinearInterpolation()Is this variant instance of kindlinear_interpolation? -
linearInterpolation
Get thelinear_interpolationvariant value.- Throws:
IllegalStateException- if the current variant is not of thelinear_interpolationkind.
-
isStupidBackoff
public boolean isStupidBackoff()Is this variant instance of kindstupid_backoff? -
stupidBackoff
Get thestupid_backoffvariant value.- Throws:
IllegalStateException- if the current variant is not of thestupid_backoffkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupSmoothingModelDeserializer
protected static void setupSmoothingModelDeserializer(ObjectDeserializer<SmoothingModel.Builder> op)
-