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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aDenseVectorProperty
.dims
(int value) Required - API name:dims
API name:index
API name:index_options
API name:index_options
protected DenseVectorProperty.Builder
self()
similarity
(String value) API name:similarity
Methods inherited from class co.elastic.clients.elasticsearch._types.mapping.PropertyBase.AbstractBuilder
dynamic, fields, fields, fields, ignoreAbove, meta, meta, properties, properties, properties
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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:
self
in classPropertyBase.AbstractBuilder<DenseVectorProperty.Builder>
-
build
Builds aDenseVectorProperty
.- Specified by:
build
in interfaceObjectBuilder<DenseVectorProperty>
- Throws:
NullPointerException
- if some of the required fields are null.
-