From 913af5e9b19c601d3085134f60b6b41d913ce510 Mon Sep 17 00:00:00 2001 From: Xiangyu Wang Date: Sat, 6 Nov 2021 19:14:54 +0800 Subject: [PATCH] update Signed-off-by: Xiangyu Wang --- pymilvus/v2/milvus_server.py | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/pymilvus/v2/milvus_server.py b/pymilvus/v2/milvus_server.py index b7ac69fb2..202c859ce 100644 --- a/pymilvus/v2/milvus_server.py +++ b/pymilvus/v2/milvus_server.py @@ -11,7 +11,36 @@ class IServer(metaclass=ABCMeta): """ - Abstraction for the function of milvus server, to makes the unit tests not depend on a milvus server. + The interface of milvus server. + + Methods + ------- + create_collection(collection_name, fields, shards_num) -> common_types.Status + Create a collection in Milvus + + drop_collection(collection_name) -> common_types.Status + Drop a collection in Milvus + + has_collection(collection_name) -> milvus_types.BoolResponse + Check if a collection exists in Milvus + + describe_collection(collection_name) -> milvus_types.DescribeCollectionResponse + Get the schema of a collection in Milvus + + list_collections() -> milvus_types.ShowCollectionsResponse + List all collections in Milvus + + create_partition(collection_name, partition_name) -> common_types.Status + Create a partition in specified collection of Milvus + + drop_partition(collection_name, partition_name) -> common_types.Status + Drop a partition in specified collection of Milvus + + has_partition(collection_name, partition_name) -> milvus_types.BoolResponse + Check if a partition exists in specified collection of Milvus + + list_partitions(collection_name) -> milvus_types.ShowPartitionsResponse + List all partitions in specified collection of Milvus """ def __init__(self):