Class RandomScoreFunction
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.RandomScoreFunction
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,FunctionScoreVariant,ToCopyableBuilder<RandomScoreFunction.Builder,RandomScoreFunction>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class RandomScoreFunction
extends Object
implements FunctionScoreVariant, PlainJsonSerializable, ToCopyableBuilder<RandomScoreFunction.Builder,RandomScoreFunction>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RandomScoreFunction> Json deserializer forRandomScoreFunction -
Method Summary
Modifier and TypeMethodDescriptionFunctionScorevariant kind.static RandomScoreFunction.Builderbuilder()booleanfinal Stringfield()API name:fieldinthashCode()static RandomScoreFunctionfinal JsonDataseed()API name:seedvoidserialize(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 forRandomScoreFunction
-
-
Method Details
-
of
public static RandomScoreFunction of(Function<RandomScoreFunction.Builder, ObjectBuilder<RandomScoreFunction>> fn) -
_functionScoreKind
FunctionScorevariant kind.- Specified by:
_functionScoreKindin interfaceFunctionScoreVariant
-
field
API name:field -
seed
API name:seed -
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<RandomScoreFunction.Builder,RandomScoreFunction> - Returns:
- a new builder instance.
-
builder
-
setupRandomScoreFunctionDeserializer
protected static void setupRandomScoreFunctionDeserializer(ObjectDeserializer<RandomScoreFunction.Builder> op) -
hashCode
public int hashCode() -
equals
-