Class DenseVectorProperty.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.mapping.PropertyBase.AbstractBuilder<DenseVectorProperty.Builder>
-
- org.opensearch.client.opensearch._types.mapping.DenseVectorProperty.Builder
-
- All Implemented Interfaces:
ObjectBuilder<DenseVectorProperty>
- Enclosing class:
- DenseVectorProperty
public static class DenseVectorProperty.Builder extends PropertyBase.AbstractBuilder<DenseVectorProperty.Builder> implements ObjectBuilder<DenseVectorProperty>
Builder forDenseVectorProperty.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DenseVectorPropertybuild()Builds aDenseVectorProperty.DenseVectorProperty.Builderdims(int value)Required - API name:dimsDenseVectorProperty.Builderindex(java.lang.Boolean value)API name:indexDenseVectorProperty.BuilderindexOptions(java.util.function.Function<DenseVectorIndexOptions.Builder,ObjectBuilder<DenseVectorIndexOptions>> fn)API name:index_optionsDenseVectorProperty.BuilderindexOptions(DenseVectorIndexOptions value)API name:index_optionsprotected DenseVectorProperty.Builderself()DenseVectorProperty.Buildersimilarity(java.lang.String value)API name:similarity-
Methods inherited from class org.opensearch.client.opensearch._types.mapping.PropertyBase.AbstractBuilder
dynamic, fields, fields, fields, ignoreAbove, localMetadata, localMetadata, meta, meta, name, properties, properties, properties
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
dims
public final DenseVectorProperty.Builder dims(int value)
Required - API name:dims
-
similarity
public final DenseVectorProperty.Builder similarity(@Nullable java.lang.String value)
API name:similarity
-
index
public final DenseVectorProperty.Builder index(@Nullable java.lang.Boolean value)
API name:index
-
indexOptions
public final DenseVectorProperty.Builder indexOptions(@Nullable DenseVectorIndexOptions value)
API name:index_options
-
indexOptions
public final DenseVectorProperty.Builder indexOptions(java.util.function.Function<DenseVectorIndexOptions.Builder,ObjectBuilder<DenseVectorIndexOptions>> fn)
API name:index_options
-
self
protected DenseVectorProperty.Builder self()
- Specified by:
selfin classPropertyBase.AbstractBuilder<DenseVectorProperty.Builder>
-
build
public DenseVectorProperty build()
Builds aDenseVectorProperty.- Specified by:
buildin interfaceObjectBuilder<DenseVectorProperty>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-