Class KnnQueryRescore
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.KnnQueryRescore
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<KnnQueryRescore.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class KnnQueryRescore
extends Object
implements TaggedUnion<KnnQueryRescore.Kind,Object>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final KnnQueryRescore.Kind_kind()Get the of the kind of variant held by this object.static KnnQueryRescore.Builderbuilder()context()Get thecontextvariant value.enable()Get theenablevariant value.booleaninthashCode()booleanIs this variant instance of kindcontext?booleanisEnable()Is this variant instance of kindenable?static KnnQueryRescorevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<KnnQueryRescore.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<KnnQueryRescore.Kind,Object>
-
of
public static KnnQueryRescore of(Function<KnnQueryRescore.Builder, ObjectBuilder<KnnQueryRescore>> fn) -
isContext
public boolean isContext()Is this variant instance of kindcontext? -
context
Get thecontextvariant value.- Throws:
IllegalStateException- if the current variant is not thecontextkind.
-
isEnable
public boolean isEnable()Is this variant instance of kindenable? -
enable
Get theenablevariant value.- Throws:
IllegalStateException- if the current variant is not theenablekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-