Package io.qdrant.client
Class VectorFactory
java.lang.Object
io.qdrant.client.VectorFactory
Convenience methods for constructing
Points.Vector-
Method Summary
Modifier and TypeMethodDescriptionstatic io.qdrant.client.grpc.Points.Vectorvector(float... values) Creates a vector from a list of floatsstatic io.qdrant.client.grpc.Points.VectorCreates a vector from a list of floatsstatic io.qdrant.client.grpc.Points.VectorCreates a sparse vector from a list of floats and integers as indices
-
Method Details
-
vector
Creates a vector from a list of floats- Parameters:
values- A map of vector names to values- Returns:
- A new instance of
Points.Vector
-
vector
public static io.qdrant.client.grpc.Points.Vector vector(float... values) Creates a vector from a list of floats- Parameters:
values- A list of values- Returns:
- A new instance of
Points.Vector
-
vector
Creates a sparse vector from a list of floats and integers as indices- Parameters:
vector- The list of floats representing the vector.indices- The list of integers representing the indices.- Returns:
- A new instance of
Points.Vector
-