Class KnnVectorMethod.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.mapping.KnnVectorMethod.Builder
-
- All Implemented Interfaces:
ObjectBuilder<KnnVectorMethod>
- Enclosing class:
- KnnVectorMethod
public static class KnnVectorMethod.Builder extends ObjectBuilderBase implements ObjectBuilder<KnnVectorMethod>
Builder forKnnVectorMethod.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KnnVectorMethodbuild()Builds aKnnVectorMethod.KnnVectorMethod.Builderengine(java.lang.String value)API name:engineKnnVectorMethod.Buildername(java.lang.String value)Required - API name:nameKnnVectorMethod.Builderparameters(java.lang.String key, JsonData value)API name:parametersKnnVectorMethod.Builderparameters(java.util.Map<java.lang.String,JsonData> map)API name:parametersKnnVectorMethod.BuilderspaceType(java.lang.String value)API name:space_type-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
name
public final KnnVectorMethod.Builder name(java.lang.String value)
Required - API name:name
-
spaceType
public final KnnVectorMethod.Builder spaceType(@Nullable java.lang.String value)
API name:space_type
-
engine
public final KnnVectorMethod.Builder engine(@Nullable java.lang.String value)
API name:engine
-
parameters
public final KnnVectorMethod.Builder parameters(@Nullable java.util.Map<java.lang.String,JsonData> map)
API name:parameters
-
parameters
public final KnnVectorMethod.Builder parameters(java.lang.String key, JsonData value)
API name:parameters
-
build
public KnnVectorMethod build()
Builds aKnnVectorMethod.- Specified by:
buildin interfaceObjectBuilder<KnnVectorMethod>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-