Class DenseVectorProperty.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.mapping.PropertyBase.AbstractBuilder<DenseVectorProperty.Builder>
co.elastic.clients.elasticsearch._types.mapping.DenseVectorProperty.Builder
- All Implemented Interfaces:
WithJson<DenseVectorProperty.Builder>,ObjectBuilder<DenseVectorProperty>
- Enclosing class:
- DenseVectorProperty
public static class DenseVectorProperty.Builder
extends PropertyBase.AbstractBuilder<DenseVectorProperty.Builder>
implements ObjectBuilder<DenseVectorProperty>
Builder for
DenseVectorProperty.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDenseVectorProperty.dims(int value) Required - API name:dimsAPI name:indexAPI name:index_optionsAPI name:index_optionsprotected DenseVectorProperty.Builderself()similarity(String value) API name:similarityMethods inherited from class co.elastic.clients.elasticsearch._types.mapping.PropertyBase.AbstractBuilder
dynamic, fields, fields, fields, ignoreAbove, meta, meta, properties, properties, propertiesMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dims
Required - API name:dims -
similarity
API name:similarity -
index
API name:index -
indexOptions
API name:index_options -
indexOptions
public final DenseVectorProperty.Builder indexOptions(Function<DenseVectorIndexOptions.Builder, ObjectBuilder<DenseVectorIndexOptions>> fn) API name:index_options -
self
- Specified by:
selfin classPropertyBase.AbstractBuilder<DenseVectorProperty.Builder>
-
build
Builds aDenseVectorProperty.- Specified by:
buildin interfaceObjectBuilder<DenseVectorProperty>- Throws:
NullPointerException- if some of the required fields are null.
-