Package io.qdrant.client
Class VectorOutputHelper
java.lang.Object
io.qdrant.client.VectorOutputHelper
Helper methods for extracting vector data from
Points.VectorOutput.-
Method Summary
Modifier and TypeMethodDescriptionstatic io.qdrant.client.grpc.Points.DenseVectorgetDenseVector(io.qdrant.client.grpc.Points.VectorOutput vectorOutput) Returns the DenseVector from the VectorOutput.static io.qdrant.client.grpc.Points.MultiDenseVectorgetMultiVector(io.qdrant.client.grpc.Points.VectorOutput vectorOutput) Returns the MultiDenseVector from the VectorOutput.static io.qdrant.client.grpc.Points.SparseVectorgetSparseVector(io.qdrant.client.grpc.Points.VectorOutput vectorOutput) Returns the SparseVector from the VectorOutput.
-
Method Details
-
getDenseVector
public static io.qdrant.client.grpc.Points.DenseVector getDenseVector(io.qdrant.client.grpc.Points.VectorOutput vectorOutput) Returns the DenseVector from the VectorOutput.- Parameters:
vectorOutput- the VectorOutput to extract from- Returns:
- the DenseVector if available, null otherwise
-
getSparseVector
public static io.qdrant.client.grpc.Points.SparseVector getSparseVector(io.qdrant.client.grpc.Points.VectorOutput vectorOutput) Returns the SparseVector from the VectorOutput.- Parameters:
vectorOutput- the VectorOutput to extract from- Returns:
- the SparseVector if available, null otherwise
-
getMultiVector
public static io.qdrant.client.grpc.Points.MultiDenseVector getMultiVector(io.qdrant.client.grpc.Points.VectorOutput vectorOutput) Returns the MultiDenseVector from the VectorOutput.- Parameters:
vectorOutput- the VectorOutput to extract from- Returns:
- the MultiDenseVector if available, null otherwise
-