From 842dcc793c00ea4d0e84326fe294f47e881aeb60 Mon Sep 17 00:00:00 2001 From: Anush008 Date: Thu, 14 Dec 2023 14:13:34 +0530 Subject: [PATCH] feat: shard key ops overloads --- .../java/io/qdrant/client/QdrantClient.java | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/qdrant/client/QdrantClient.java b/src/main/java/io/qdrant/client/QdrantClient.java index 918a434..a32c7da 100644 --- a/src/main/java/io/qdrant/client/QdrantClient.java +++ b/src/main/java/io/qdrant/client/QdrantClient.java @@ -671,6 +671,16 @@ public ListenableFuture> listAliasesAsync(@Nullable Durat //region ShardKey Management + /** + * Creates a shard key for a collection. + * + * @param createShardKey The request object for the operation. + * @return a new instance of {@link CreateShardKeyResponse} + */ + public ListenableFuture createShardKeyAsync(CreateShardKeyRequest createShardKey) { + return createShardKeyAsync(createShardKey, null); + } + /** * Creates a shard key for a collection. * @@ -697,7 +707,17 @@ public ListenableFuture createShardKeyAsync(CreateShardK /** * Deletes a shard key for a collection. * - * @param createShardKey The request object for the operation. + * @param deleteShardKey The request object for the operation. + * @return a new instance of {@link DeleteShardKeyResponse} + */ + public ListenableFuture deleteShardKeyAsync(DeleteShardKeyRequest deleteShardKey) { + return deleteShardKeyAsync(deleteShardKey, null); + } + + /** + * Deletes a shard key for a collection. + * + * @param deleteShardKey The request object for the operation. * @param timeout The timeout for the call. * @return a new instance of {@link DeleteShardKeyResponse} */