Class LinearInterpolationSmoothingModel
java.lang.Object
co.elastic.clients.elasticsearch.core.search.LinearInterpolationSmoothingModel
- All Implemented Interfaces:
SmoothingModelVariant
,JsonpSerializable
@JsonpDeserializable public class LinearInterpolationSmoothingModel extends java.lang.Object implements SmoothingModelVariant, JsonpSerializable
- See Also:
- API specification
-
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
-
Method Summary
Modifier and Type Method Description SmoothingModel.Kind
_smoothingModelKind()
SmoothingModel variant kind.double
bigramLambda()
Required - API name:bigram_lambda
static LinearInterpolationSmoothingModel
of(java.util.function.Function<LinearInterpolationSmoothingModel.Builder,ObjectBuilder<LinearInterpolationSmoothingModel>> fn)
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(ObjectDeserializer<LinearInterpolationSmoothingModel.Builder> op)
java.lang.String
toString()
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, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.core.search.SmoothingModelVariant
_toSmoothingModel
-
Field Details
-
_DESERIALIZER
Json deserializer forLinearInterpolationSmoothingModel
-
-
Method Details
-
of
public static LinearInterpolationSmoothingModel of(java.util.function.Function<LinearInterpolationSmoothingModel.Builder,ObjectBuilder<LinearInterpolationSmoothingModel>> fn) -
_smoothingModelKind
SmoothingModel variant kind.- Specified by:
_smoothingModelKind
in interfaceSmoothingModelVariant
-
bigramLambda
public final double bigramLambda()Required - API name:bigram_lambda
-
trigramLambda
public final double trigramLambda()Required - API name:trigram_lambda
-
unigramLambda
public final double unigramLambda()Required - API name:unigram_lambda
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupLinearInterpolationSmoothingModelDeserializer
protected static void setupLinearInterpolationSmoothingModelDeserializer(ObjectDeserializer<LinearInterpolationSmoothingModel.Builder> op)
-