Skip to content

Commit

Permalink
feat: shard key ops overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 committed Dec 14, 2023
1 parent cc5145a commit 842dcc7
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/main/java/io/qdrant/client/QdrantClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,16 @@ public ListenableFuture<List<AliasDescription>> 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<CreateShardKeyResponse> createShardKeyAsync(CreateShardKeyRequest createShardKey) {
return createShardKeyAsync(createShardKey, null);
}

/**
* Creates a shard key for a collection.
*
Expand All @@ -697,7 +707,17 @@ public ListenableFuture<CreateShardKeyResponse> 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<DeleteShardKeyResponse> 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}
*/
Expand Down

0 comments on commit 842dcc7

Please sign in to comment.