Class SmoothingModelContainer
java.lang.Object
org.opensearch.client.util.TaggedUnion<SmoothingModelContainer.Tag,java.lang.Object>
org.opensearch.client.opensearch._global.search.SmoothingModelContainer
- All Implemented Interfaces:
ToJsonp
public class SmoothingModelContainer extends TaggedUnion<SmoothingModelContainer.Tag,java.lang.Object> implements ToJsonp
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSmoothingModelContainer.Builderstatic classSmoothingModelContainer.Tag -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SmoothingModelContainer>DESERIALIZER -
Method Summary
Modifier and Type Method Description booleanisLaplace()Is thisSmoothingModelContainerof alaplacekind?booleanisLinearInterpolation()Is thisSmoothingModelContainerof alinear_interpolationkind?booleanisStupidBackoff()Is thisSmoothingModelContainerof astupid_backoffkind?LaplaceSmoothingModellaplace()Get thelaplacevariant value.LinearInterpolationSmoothingModellinearInterpolation()Get thelinear_interpolationvariant value.StupidBackoffSmoothingModelstupidBackoff()Get thestupid_backoffvariant value.voidtoJsonp(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
Field Details
-
Method Details
-
isLaplace
public boolean isLaplace()Is thisSmoothingModelContainerof alaplacekind? -
laplace
Get thelaplacevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelaplacekind.
-
isLinearInterpolation
public boolean isLinearInterpolation()Is thisSmoothingModelContainerof alinear_interpolationkind? -
linearInterpolation
Get thelinear_interpolationvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelinear_interpolationkind.
-
isStupidBackoff
public boolean isStupidBackoff()Is thisSmoothingModelContainerof astupid_backoffkind? -
stupidBackoff
Get thestupid_backoffvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestupid_backoffkind.
-
toJsonp
-