Class KnnVectorMethod.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.mapping.KnnVectorMethod.Builder
-
- All Implemented Interfaces:
CopyableBuilder<KnnVectorMethod.Builder,KnnVectorMethod>,MutableBuilder<KnnVectorMethod.Builder,KnnVectorMethod>,ObjectBuilder<KnnVectorMethod>
- Enclosing class:
- KnnVectorMethod
public static class KnnVectorMethod.Builder extends ObjectBuilderBase implements CopyableBuilder<KnnVectorMethod.Builder,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.Buildercopy()Create a new builderCopyableBuilderthat is a copy of this one.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, _listAdd, _listAddAll, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
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.util.MutableBuilder
applyMutation
-
-
-
-
Method Detail
-
copy
@Nonnull public KnnVectorMethod.Builder copy()
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<KnnVectorMethod.Builder,KnnVectorMethod>- Returns:
- a new builder instance.
-
engine
@Nonnull public final KnnVectorMethod.Builder engine(@Nullable java.lang.String value)
API name:engine
-
name
@Nonnull public final KnnVectorMethod.Builder name(java.lang.String value)
Required - API name:name
-
parameters
@Nonnull public final KnnVectorMethod.Builder parameters(java.util.Map<java.lang.String,JsonData> map)
API name:parametersAdds all elements of
maptoparameters.
-
parameters
@Nonnull public final KnnVectorMethod.Builder parameters(java.lang.String key, JsonData value)
API name:parametersAdds an entry to
parameters.
-
spaceType
@Nonnull public final KnnVectorMethod.Builder spaceType(@Nullable java.lang.String value)
API name:space_type
-
build
@Nonnull public KnnVectorMethod build()
Builds aKnnVectorMethod.- Specified by:
buildin interfaceObjectBuilder<KnnVectorMethod>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-