Class LinearInterpolationSmoothingModel
java.lang.Object
co.elastic.clients.elasticsearch._core.search.LinearInterpolationSmoothingModel
- All Implemented Interfaces:
SmoothingModelVariant
,JsonpSerializable
,UnionVariant
@JsonpDeserializable public final class LinearInterpolationSmoothingModel extends java.lang.Object implements SmoothingModelVariant, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LinearInterpolationSmoothingModel.Builder
Builder forLinearInterpolationSmoothingModel
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<LinearInterpolationSmoothingModel>
_DESERIALIZER
Json deserializer forLinearInterpolationSmoothingModel
-
Constructor Summary
Constructors Constructor Description LinearInterpolationSmoothingModel(LinearInterpolationSmoothingModel.Builder builder)
LinearInterpolationSmoothingModel(java.util.function.Function<LinearInterpolationSmoothingModel.Builder,LinearInterpolationSmoothingModel.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.String
_variantType()
SmoothingModel
variant typedouble
bigramLambda()
Required - API name:bigram_lambda
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupLinearInterpolationSmoothingModelDeserializer(DelegatingDeserializer<LinearInterpolationSmoothingModel.Builder> op)
double
trigramLambda()
Required - API name:trigram_lambda
double
unigramLambda()
Required - API name:unigram_lambda
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch._core.search.SmoothingModelVariant
_toSmoothingModel
-
Field Details
-
_DESERIALIZER
Json deserializer forLinearInterpolationSmoothingModel
-
-
Constructor Details
-
LinearInterpolationSmoothingModel
-
LinearInterpolationSmoothingModel
public LinearInterpolationSmoothingModel(java.util.function.Function<LinearInterpolationSmoothingModel.Builder,LinearInterpolationSmoothingModel.Builder> fn)
-
-
Method Details
-
_variantType
public java.lang.String _variantType()SmoothingModel
variant type- Specified by:
_variantType
in interfaceUnionVariant
-
bigramLambda
public double bigramLambda()Required - API name:bigram_lambda
-
trigramLambda
public double trigramLambda()Required - API name:trigram_lambda
-
unigramLambda
public double unigramLambda()Required - API name:unigram_lambda
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupLinearInterpolationSmoothingModelDeserializer
protected static void setupLinearInterpolationSmoothingModelDeserializer(DelegatingDeserializer<LinearInterpolationSmoothingModel.Builder> op)
-