public class QdrantGrpc extends Object implements Serializable
| Constructor and Description |
|---|
QdrantGrpc(URL url,
String apiKey)
Constructor for QdrantRest class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
upsert(String collectionName,
List<io.qdrant.client.grpc.Points.PointStruct> points,
io.qdrant.client.grpc.Points.ShardKeySelector shardKeySelector)
Uploads a batch of points to a Qdrant collection.
|
public QdrantGrpc(URL url, String apiKey) throws MalformedURLException
url - The URL of the Qdrant instance.apiKey - The API key to authenticate with Qdrant.MalformedURLException - If the URL is invalid.public void upsert(String collectionName, List<io.qdrant.client.grpc.Points.PointStruct> points, @Nullable io.qdrant.client.grpc.Points.ShardKeySelector shardKeySelector) throws InterruptedException, ExecutionException
collectionName - The name of the collection to upload the points to.points - The list of points to upload.shardKeySelector - The shard key selector to use for the upsert.InterruptedException - If there was an error uploading the batch to
Qdrant.ExecutionException - If there was an error uploading the batch to
Qdrant.public void close()
Copyright © 2024. All rights reserved.