Class SmoothingModel
java.lang.Object
co.elastic.clients.elasticsearch.core.search.SmoothingModel
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<java.lang.Object>
@JsonpDeserializable public class SmoothingModel extends java.lang.Object implements TaggedUnion<java.lang.Object>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSmoothingModel.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SmoothingModel>_DESERIALIZERstatic java.lang.StringLAPLACEstatic java.lang.StringLINEAR_INTERPOLATIONstatic java.lang.StringSTUPID_BACKOFF -
Constructor Summary
Constructors Constructor Description SmoothingModel(SmoothingModelVariant value)SmoothingModel(ObjectBuilder<T> builder)SmoothingModel(java.util.function.Function<SmoothingModel.Builder,SmoothingModel.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Object_get()java.lang.String_type()Get the of the type of the variant held by this union object.LaplaceSmoothingModellaplace()Get thelaplacevariant value.LinearInterpolationSmoothingModellinearInterpolation()Get thelinear_interpolationvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupSmoothingModelDeserializer(DelegatingDeserializer<SmoothingModel.Builder> op)StupidBackoffSmoothingModelstupidBackoff()Get thestupid_backoffvariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
LAPLACE
public static final java.lang.String LAPLACE- See Also:
- Constant Field Values
-
LINEAR_INTERPOLATION
public static final java.lang.String LINEAR_INTERPOLATION- See Also:
- Constant Field Values
-
STUPID_BACKOFF
public static final java.lang.String STUPID_BACKOFF- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
SmoothingModel
-
SmoothingModel
-
SmoothingModel
public SmoothingModel(java.util.function.Function<SmoothingModel.Builder,SmoothingModel.Builder> fn)
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnionGet the of the type of the variant held by this union object.- Specified by:
_typein interfaceTaggedUnion<java.lang.Object>- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<java.lang.Object>
-
laplace
Get thelaplacevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelaplacekind.
-
linearInterpolation
Get thelinear_interpolationvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelinear_interpolationkind.
-
stupidBackoff
Get thestupid_backoffvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestupid_backoffkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupSmoothingModelDeserializer
protected static void setupSmoothingModelDeserializer(DelegatingDeserializer<SmoothingModel.Builder> op)
-