Class ScriptScoreFunction
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.ScriptScoreFunction
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,FunctionScoreVariant,ToCopyableBuilder<ScriptScoreFunction.Builder,ScriptScoreFunction>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ScriptScoreFunction
extends Object
implements FunctionScoreVariant, PlainJsonSerializable, ToCopyableBuilder<ScriptScoreFunction.Builder,ScriptScoreFunction>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ScriptScoreFunction> Json deserializer forScriptScoreFunction -
Method Summary
Modifier and TypeMethodDescriptionFunctionScorevariant kind.static ScriptScoreFunction.Builderbuilder()booleaninthashCode()static ScriptScoreFunctionfinal Scriptscript()Required - API name:scriptvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.opensearch._types.query_dsl.FunctionScoreVariant
toFunctionScoreMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forScriptScoreFunction
-
-
Method Details
-
of
public static ScriptScoreFunction of(Function<ScriptScoreFunction.Builder, ObjectBuilder<ScriptScoreFunction>> fn) -
_functionScoreKind
FunctionScorevariant kind.- Specified by:
_functionScoreKindin interfaceFunctionScoreVariant
-
script
Required - API name:script -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ScriptScoreFunction.Builder,ScriptScoreFunction> - Returns:
- a new builder instance.
-
builder
-
setupScriptScoreFunctionDeserializer
protected static void setupScriptScoreFunctionDeserializer(ObjectDeserializer<ScriptScoreFunction.Builder> op) -
hashCode
public int hashCode() -
equals
-