File tree 1 file changed +30
-1
lines changed
1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
class IServer (metaclass = ABCMeta ):
13
13
"""
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
15
44
"""
16
45
17
46
def __init__ (self ):
You can’t perform that action at this time.
0 commit comments