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 Constructor Description Builder() -
Method Summary
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(DenseVectorIndexOptions value)API name:index_optionsDenseVectorProperty.BuilderindexOptions(java.util.function.Function<DenseVectorIndexOptions.Builder,ObjectBuilder<DenseVectorIndexOptions>> fn)API name:index_optionsprotected DenseVectorProperty.Builderself()DenseVectorProperty.Buildersimilarity(java.lang.String value)API name:similarityMethods inherited from class co.elastic.clients.elasticsearch._types.mapping.PropertyBase.AbstractBuilder
dynamic, fields, fields, fields, ignoreAbove, localMetadata, localMetadata, 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, _mapPutAllMethods 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:
selfin classPropertyBase.AbstractBuilder<DenseVectorProperty.Builder>
-
build
Builds aDenseVectorProperty.- Specified by:
buildin interfaceObjectBuilder<DenseVectorProperty>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-