Class DenseVectorProperty.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch._types.mapping.PropertyBase.AbstractBuilder<DenseVectorProperty.Builder>
co.elastic.clients.elasticsearch._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 for
DenseVectorProperty
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DenseVectorProperty
build()
Builds aDenseVectorProperty
.DenseVectorProperty.Builder
dims(int value)
Required - API name:dims
DenseVectorProperty.Builder
index(java.lang.Boolean value)
API name:index
DenseVectorProperty.Builder
indexOptions(DenseVectorIndexOptions value)
API name:index_options
DenseVectorProperty.Builder
indexOptions(java.util.function.Function<DenseVectorIndexOptions.Builder,ObjectBuilder<DenseVectorIndexOptions>> fn)
API name:index_options
protected DenseVectorProperty.Builder
self()
DenseVectorProperty.Builder
similarity(java.lang.String value)
API name:similarity
Methods inherited from class co.elastic.clients.elasticsearch._types.mapping.PropertyBase.AbstractBuilder
dynamic, fields, fields, fields, ignoreAbove, localMetadata, localMetadata, meta, meta, name, properties, properties, properties
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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(java.util.function.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:
java.lang.NullPointerException
- if some of the required fields are null.
-