Class Vector
java.lang.Object
co.elastic.clients.elasticsearch.xpack.usage.Base
co.elastic.clients.elasticsearch.xpack.usage.Vector
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class Vector extends Base
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVector.BuilderBuilder forVector.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch.xpack.usage.Base
Base.AbstractBuilder<BuilderT extends Base.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Vector>_DESERIALIZERJson deserializer forVector -
Constructor Summary
Constructors Constructor Description Vector(Vector.Builder builder)Vector(java.util.function.Function<Vector.Builder,Vector.Builder> fn) -
Method Summary
Modifier and Type Method Description intdenseVectorDimsAvgCount()Required - API name:dense_vector_dims_avg_countintdenseVectorFieldsCount()Required - API name:dense_vector_fields_countprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupVectorDeserializer(DelegatingDeserializer<Vector.Builder> op)java.lang.IntegersparseVectorFieldsCount()API name:sparse_vector_fields_countMethods inherited from class co.elastic.clients.elasticsearch.xpack.usage.Base
available, enabled, serialize, setupBaseDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forVector
-
-
Constructor Details
-
Vector
-
Vector
-
-
Method Details
-
denseVectorDimsAvgCount
public int denseVectorDimsAvgCount()Required - API name:dense_vector_dims_avg_count -
denseVectorFieldsCount
public int denseVectorFieldsCount()Required - API name:dense_vector_fields_count -
sparseVectorFieldsCount
@Nullable public java.lang.Integer sparseVectorFieldsCount()API name:sparse_vector_fields_count -
serializeInternal
- Overrides:
serializeInternalin classBase
-
setupVectorDeserializer
-