Class KnnVectorMethod
java.lang.Object
org.opensearch.client.opensearch._types.mapping.KnnVectorMethod
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<KnnVectorMethod.Builder,KnnVectorMethod>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class KnnVectorMethod
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<KnnVectorMethod.Builder,KnnVectorMethod>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<KnnVectorMethod> Json deserializer forKnnVectorMethod -
Method Summary
Modifier and TypeMethodDescriptionstatic KnnVectorMethod.Builderbuilder()final Stringengine()API name:enginebooleaninthashCode()final Stringname()Required - API name:namestatic KnnVectorMethodAPI name:parametersvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal StringAPI name:space_typeCreate 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.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forKnnVectorMethod
-
-
Method Details
-
of
public static KnnVectorMethod of(Function<KnnVectorMethod.Builder, ObjectBuilder<KnnVectorMethod>> fn) -
engine
API name:engine -
name
Required - API name:name -
parameters
API name:parameters -
spaceType
API name:space_type -
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<KnnVectorMethod.Builder,KnnVectorMethod> - Returns:
- a new builder instance.
-
builder
-
setupKnnVectorMethodDeserializer
protected static void setupKnnVectorMethodDeserializer(ObjectDeserializer<KnnVectorMethod.Builder> op) -
hashCode
public int hashCode() -
equals
-