Skip to content

Commit 913af5e

Browse files
author
Xiangyu Wang
committed
update
Signed-off-by: Xiangyu Wang <[email protected]>
1 parent b6758a6 commit 913af5e

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

pymilvus/v2/milvus_server.py

+30-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,36 @@
1111

1212
class IServer(metaclass=ABCMeta):
1313
"""
14-
Abstraction for the function of milvus server, to makes the unit tests not depend on a milvus server.
14+
The interface of milvus server.
15+
16+
Methods
17+
-------
18+
create_collection(collection_name, fields, shards_num) -> common_types.Status
19+
Create a collection in Milvus
20+
21+
drop_collection(collection_name) -> common_types.Status
22+
Drop a collection in Milvus
23+
24+
has_collection(collection_name) -> milvus_types.BoolResponse
25+
Check if a collection exists in Milvus
26+
27+
describe_collection(collection_name) -> milvus_types.DescribeCollectionResponse
28+
Get the schema of a collection in Milvus
29+
30+
list_collections() -> milvus_types.ShowCollectionsResponse
31+
List all collections in Milvus
32+
33+
create_partition(collection_name, partition_name) -> common_types.Status
34+
Create a partition in specified collection of Milvus
35+
36+
drop_partition(collection_name, partition_name) -> common_types.Status
37+
Drop a partition in specified collection of Milvus
38+
39+
has_partition(collection_name, partition_name) -> milvus_types.BoolResponse
40+
Check if a partition exists in specified collection of Milvus
41+
42+
list_partitions(collection_name) -> milvus_types.ShowPartitionsResponse
43+
List all partitions in specified collection of Milvus
1544
"""
1645

1746
def __init__(self):

0 commit comments

Comments
 (0)