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 SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
_kindDescription copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
- _kindin interface- TaggedUnion<SmoothingModel.Kind,- Object> 
- Returns:
- the variant kind
 
- 
_get- Specified by:
- _getin interface- TaggedUnion<SmoothingModel.Kind,- Object> 
 
- 
of
- 
isLaplacepublic boolean isLaplace()Is this variant instance of kindlaplace?
- 
laplaceGet thelaplacevariant value.- Throws:
- IllegalStateException- if the current variant is not of the- laplacekind.
 
- 
isLinearInterpolationpublic boolean isLinearInterpolation()Is this variant instance of kindlinear_interpolation?
- 
linearInterpolationGet thelinear_interpolationvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- linear_interpolationkind.
 
- 
isStupidBackoffpublic boolean isStupidBackoff()Is this variant instance of kindstupid_backoff?
- 
stupidBackoffGet thestupid_backoffvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- stupid_backoffkind.
 
- 
serialize- Specified by:
- serializein interface- JsonpSerializable
 
- 
toString
- 
setupSmoothingModelDeserializerprotected static void setupSmoothingModelDeserializer(ObjectDeserializer<SmoothingModel.Builder> op) 
 
-