Class KnnQueryRescore
- java.lang.Object
-
- org.opensearch.client.opensearch._types.query_dsl.KnnQueryRescore
-
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<KnnQueryRescore.Kind,java.lang.Object>
@JsonpDeserializable public class KnnQueryRescore extends java.lang.Object implements TaggedUnion<KnnQueryRescore.Kind,java.lang.Object>, PlainJsonSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKnnQueryRescore.Builderstatic classKnnQueryRescore.Kind
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<KnnQueryRescore>_DESERIALIZER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object_get()KnnQueryRescore.Kind_kind()Get the of the kind of variant held by this object.RescoreContextcontext()java.lang.Booleanenable()booleanisContext()booleanisEnable()static KnnQueryRescoreof(java.util.function.Function<KnnQueryRescore.Builder,ObjectBuilder<KnnQueryRescore>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)-
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.json.PlainJsonSerializable
toJsonString
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<KnnQueryRescore> _DESERIALIZER
-
-
Method Detail
-
_kind
public KnnQueryRescore.Kind _kind()
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<KnnQueryRescore.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public java.lang.Object _get()
- Specified by:
_getin interfaceTaggedUnion<KnnQueryRescore.Kind,java.lang.Object>
-
of
public static KnnQueryRescore of(java.util.function.Function<KnnQueryRescore.Builder,ObjectBuilder<KnnQueryRescore>> fn)
-
isEnable
public boolean isEnable()
-
enable
public java.lang.Boolean enable()
-
isContext
public boolean isContext()
-
context
public RescoreContext context()
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
-