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 java.lang.Object implements PlainJsonSerializable, ToCopyableBuilder<KnnVectorMethod.Builder,KnnVectorMethod>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKnnVectorMethod.BuilderBuilder forKnnVectorMethod.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<KnnVectorMethod>_DESERIALIZERJson deserializer forKnnVectorMethod
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KnnVectorMethod.Builderbuilder()java.lang.Stringengine()API name:enginebooleanequals(java.lang.Object o)inthashCode()java.lang.Stringname()Required - API name:namestatic KnnVectorMethodof(java.util.function.Function<KnnVectorMethod.Builder,ObjectBuilder<KnnVectorMethod>> fn)java.util.Map<java.lang.String,JsonData>parameters()API 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 voidsetupKnnVectorMethodDeserializer(ObjectDeserializer<KnnVectorMethod.Builder> op)java.lang.StringspaceType()API name:space_typeKnnVectorMethod.BuildertoBuilder()Create 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, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Methods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<KnnVectorMethod> _DESERIALIZER
Json deserializer forKnnVectorMethod
-
-
Method Detail
-
of
public static KnnVectorMethod of(java.util.function.Function<KnnVectorMethod.Builder,ObjectBuilder<KnnVectorMethod>> fn)
-
engine
@Nullable public final java.lang.String engine()
API name:engine
-
name
@Nonnull public final java.lang.String name()
Required - API name:name
-
parameters
@Nonnull public final java.util.Map<java.lang.String,JsonData> parameters()
API name:parameters
-
spaceType
@Nullable public final java.lang.String spaceType()
API name:space_type
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
toBuilder
@Nonnull public KnnVectorMethod.Builder 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
@Nonnull public static KnnVectorMethod.Builder builder()
-
setupKnnVectorMethodDeserializer
protected static void setupKnnVectorMethodDeserializer(ObjectDeserializer<KnnVectorMethod.Builder> op)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-