Class StupidBackoffSmoothingModel
- java.lang.Object
-
- org.opensearch.client.opensearch.core.search.StupidBackoffSmoothingModel
-
- All Implemented Interfaces:
JsonpSerializable
,SmoothingModelVariant
@JsonpDeserializable public class StupidBackoffSmoothingModel extends java.lang.Object implements SmoothingModelVariant, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StupidBackoffSmoothingModel.Builder
Builder forStupidBackoffSmoothingModel
.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<StupidBackoffSmoothingModel>
_DESERIALIZER
Json deserializer forStupidBackoffSmoothingModel
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SmoothingModel.Kind
_smoothingModelKind()
SmoothingModel variant kind.double
discount()
Required - API name:discount
static StupidBackoffSmoothingModel
of(java.util.function.Function<StupidBackoffSmoothingModel.Builder,ObjectBuilder<StupidBackoffSmoothingModel>> 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
setupStupidBackoffSmoothingModelDeserializer(ObjectDeserializer<StupidBackoffSmoothingModel.Builder> op)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.opensearch.core.search.SmoothingModelVariant
_toSmoothingModel
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<StupidBackoffSmoothingModel> _DESERIALIZER
Json deserializer forStupidBackoffSmoothingModel
-
-
Method Detail
-
of
public static StupidBackoffSmoothingModel of(java.util.function.Function<StupidBackoffSmoothingModel.Builder,ObjectBuilder<StupidBackoffSmoothingModel>> fn)
-
_smoothingModelKind
public SmoothingModel.Kind _smoothingModelKind()
SmoothingModel variant kind.- Specified by:
_smoothingModelKind
in interfaceSmoothingModelVariant
-
discount
public final double discount()
Required - API name:discount
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupStupidBackoffSmoothingModelDeserializer
protected static void setupStupidBackoffSmoothingModelDeserializer(ObjectDeserializer<StupidBackoffSmoothingModel.Builder> op)
-
-