@zilliz/milvus2-sdk-node 2.3.5 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/README.md +154 -35
  2. package/dist/milvus/HttpClient.d.ts +165 -2
  3. package/dist/milvus/HttpClient.js +17 -3
  4. package/dist/milvus/HttpClient.js.map +1 -1
  5. package/dist/milvus/MilvusClient.d.ts +3 -3
  6. package/dist/milvus/MilvusClient.js +42 -8
  7. package/dist/milvus/MilvusClient.js.map +1 -1
  8. package/dist/milvus/const/client.d.ts +4 -3
  9. package/dist/milvus/const/client.js +4 -3
  10. package/dist/milvus/const/client.js.map +1 -1
  11. package/dist/milvus/const/defaults.d.ts +5 -4
  12. package/dist/milvus/const/defaults.js +14 -13
  13. package/dist/milvus/const/defaults.js.map +1 -1
  14. package/dist/milvus/const/error.js +1 -1
  15. package/dist/milvus/const/error.js.map +1 -1
  16. package/dist/milvus/const/milvus.d.ts +47 -8
  17. package/dist/milvus/const/milvus.js +42 -3
  18. package/dist/milvus/const/milvus.js.map +1 -1
  19. package/dist/milvus/grpc/BaseClient.d.ts +11 -9
  20. package/dist/milvus/grpc/BaseClient.js +59 -21
  21. package/dist/milvus/grpc/BaseClient.js.map +1 -1
  22. package/dist/milvus/grpc/Collection.d.ts +311 -366
  23. package/dist/milvus/grpc/Collection.js +355 -387
  24. package/dist/milvus/grpc/Collection.js.map +1 -1
  25. package/dist/milvus/grpc/Data.d.ts +244 -291
  26. package/dist/milvus/grpc/Data.js +402 -539
  27. package/dist/milvus/grpc/Data.js.map +1 -1
  28. package/dist/milvus/grpc/Database.d.ts +29 -41
  29. package/dist/milvus/grpc/Database.js +32 -44
  30. package/dist/milvus/grpc/Database.js.map +1 -1
  31. package/dist/milvus/grpc/GrpcClient.d.ts +34 -13
  32. package/dist/milvus/grpc/GrpcClient.js +80 -70
  33. package/dist/milvus/grpc/GrpcClient.js.map +1 -1
  34. package/dist/milvus/grpc/MilvusIndex.d.ts +127 -67
  35. package/dist/milvus/grpc/MilvusIndex.js +166 -70
  36. package/dist/milvus/grpc/MilvusIndex.js.map +1 -1
  37. package/dist/milvus/grpc/Partition.d.ts +78 -113
  38. package/dist/milvus/grpc/Partition.js +109 -119
  39. package/dist/milvus/grpc/Partition.js.map +1 -1
  40. package/dist/milvus/grpc/Resource.d.ts +63 -92
  41. package/dist/milvus/grpc/Resource.js +69 -98
  42. package/dist/milvus/grpc/Resource.js.map +1 -1
  43. package/dist/milvus/grpc/User.d.ts +263 -295
  44. package/dist/milvus/grpc/User.js +287 -310
  45. package/dist/milvus/grpc/User.js.map +1 -1
  46. package/dist/milvus/http/Alias.d.ts +37 -0
  47. package/dist/milvus/http/Alias.js +62 -0
  48. package/dist/milvus/http/Alias.js.map +1 -0
  49. package/dist/milvus/http/Collection.d.ts +15 -1
  50. package/dist/milvus/http/Collection.js +55 -9
  51. package/dist/milvus/http/Collection.js.map +1 -1
  52. package/dist/milvus/http/Import.d.ts +33 -0
  53. package/dist/milvus/http/Import.js +48 -0
  54. package/dist/milvus/http/Import.js.map +1 -0
  55. package/dist/milvus/http/MilvusIndex.d.ts +35 -0
  56. package/dist/milvus/http/MilvusIndex.js +55 -0
  57. package/dist/milvus/http/MilvusIndex.js.map +1 -0
  58. package/dist/milvus/http/Partition.d.ts +41 -0
  59. package/dist/milvus/http/Partition.js +76 -0
  60. package/dist/milvus/http/Partition.js.map +1 -0
  61. package/dist/milvus/http/Role.d.ts +39 -0
  62. package/dist/milvus/http/Role.js +69 -0
  63. package/dist/milvus/http/Role.js.map +1 -0
  64. package/dist/milvus/http/User.d.ts +41 -0
  65. package/dist/milvus/http/User.js +76 -0
  66. package/dist/milvus/http/User.js.map +1 -0
  67. package/dist/milvus/http/Vector.d.ts +5 -3
  68. package/dist/milvus/http/Vector.js +10 -7
  69. package/dist/milvus/http/Vector.js.map +1 -1
  70. package/dist/milvus/http/index.d.ts +6 -0
  71. package/dist/milvus/http/index.js +6 -0
  72. package/dist/milvus/http/index.js.map +1 -1
  73. package/dist/milvus/index.d.ts +0 -1
  74. package/dist/milvus/index.js +0 -1
  75. package/dist/milvus/index.js.map +1 -1
  76. package/dist/milvus/types/Client.d.ts +5 -0
  77. package/dist/milvus/types/Collection.d.ts +34 -9
  78. package/dist/milvus/types/Common.d.ts +1 -3
  79. package/dist/milvus/types/Data.d.ts +79 -23
  80. package/dist/milvus/types/Data.js +1 -0
  81. package/dist/milvus/types/Data.js.map +1 -1
  82. package/dist/milvus/types/HighLevel.d.ts +6 -3
  83. package/dist/milvus/types/Http.d.ts +191 -9
  84. package/dist/milvus/types/MilvusIndex.d.ts +17 -3
  85. package/dist/milvus/utils/Bytes.d.ts +84 -0
  86. package/dist/milvus/utils/Bytes.js +261 -0
  87. package/dist/milvus/utils/Bytes.js.map +1 -0
  88. package/dist/milvus/utils/Format.d.ts +126 -68
  89. package/dist/milvus/utils/Format.js +375 -94
  90. package/dist/milvus/utils/Format.js.map +1 -1
  91. package/dist/milvus/utils/Function.d.ts +4 -2
  92. package/dist/milvus/utils/Function.js +58 -25
  93. package/dist/milvus/utils/Function.js.map +1 -1
  94. package/dist/milvus/utils/Grpc.d.ts +3 -2
  95. package/dist/milvus/utils/Grpc.js +65 -98
  96. package/dist/milvus/utils/Grpc.js.map +1 -1
  97. package/dist/milvus/utils/Validate.d.ts +18 -3
  98. package/dist/milvus/utils/Validate.js +38 -12
  99. package/dist/milvus/utils/Validate.js.map +1 -1
  100. package/dist/milvus/utils/index.d.ts +1 -1
  101. package/dist/milvus/utils/index.js +1 -1
  102. package/dist/milvus/utils/index.js.map +1 -1
  103. package/dist/proto/proto/common.proto +26 -1
  104. package/dist/proto/proto/google/protobuf/descriptor.proto +90 -28
  105. package/dist/proto/proto/milvus.proto +168 -2
  106. package/dist/proto/proto/rg.proto +28 -0
  107. package/dist/proto/proto/schema.proto +34 -0
  108. package/dist/sdk.json +1 -1
  109. package/package.json +8 -5
  110. package/dist/milvus/OrmClient.d.ts +0 -19
  111. package/dist/milvus/OrmClient.js +0 -51
  112. package/dist/milvus/OrmClient.js.map +0 -1
  113. package/dist/milvus/orm/Collection.d.ts +0 -43
  114. package/dist/milvus/orm/Collection.js +0 -165
  115. package/dist/milvus/orm/Collection.js.map +0 -1
  116. package/dist/milvus/orm/index.d.ts +0 -1
  117. package/dist/milvus/orm/index.js +0 -18
  118. package/dist/milvus/orm/index.js.map +0 -1
  119. package/dist/milvus/utils/Blob.d.ts +0 -4
  120. package/dist/milvus/utils/Blob.js +0 -18
  121. package/dist/milvus/utils/Blob.js.map +0 -1
@@ -4,22 +4,16 @@ export declare class Partition extends Index {
4
4
  /**
5
5
  * Create a partition in a collection.
6
6
  *
7
- * @param data
8
- * | Property | Type | Description |
9
- * | :-- | :-- | :-- |
10
- * | collection_name | String | Collection name |
11
- * | partition_name | String | Partition name |
12
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
13
-
14
- *
15
- * @returns
16
- * | Property | Description |
17
- * | :-- | :-- |
18
- * | error_code | Error code number |
19
- * | reason | Error cause |
20
- *
21
- * #### Example
7
+ * @param {Object} data - The data for the partition.
8
+ * @param {string} data.collection_name - The name of the collection.
9
+ * @param {string} data.partition_name - The name of the partition.
10
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
22
11
  *
12
+ * @returns {Promise<ResStatus>} A promise that resolves to the response status.
13
+ * @returns {number} status.error_code - The error code.
14
+ * @returns {string} status.reason - The error reason.
15
+ *
16
+ * @example
23
17
  * ```
24
18
  * new milvusClient(MILUVS_ADDRESS).createPartition({
25
19
  * collection_name: 'my_collection',
@@ -31,22 +25,17 @@ export declare class Partition extends Index {
31
25
  /**
32
26
  * Check if a partition exists in a collection.
33
27
  *
34
- * @param data
35
- * | Property | Type | Description |
36
- * | :-- | :-- | :-- |
37
- * | collection_name | string | Collection name |
38
- * | partition_name | string | Parititon name |
39
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
40
-
41
- *
42
- * @returns
43
- * | Property | Description |
44
- * | :-- | :-- |
45
- * | status | { error_code: number,reason:string } |
46
- * | value | `true` or `false` |
28
+ * @param {Object} data - The data for the partition.
29
+ * @param {string} data.collection_name - The name of the collection.
30
+ * @param {string} data.partition_name - The name of the partition.
31
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
47
32
  *
48
- * #### Example
33
+ * @returns {Promise<BoolResponse>} A promise that resolves to the response status.
34
+ * @returns {number} status.error_code - The error code.
35
+ * @returns {string} status.reason - The error reason.
36
+ * @returns {boolean} value - `true` if the partition exists, `false` otherwise.
49
37
  *
38
+ * @example
50
39
  * ```
51
40
  * new milvusClient(MILUVS_ADDRESS).hasPartition({
52
41
  * collection_name: 'my_collection',
@@ -58,51 +47,40 @@ export declare class Partition extends Index {
58
47
  /**
59
48
  * Show all partitions in a collection.
60
49
  *
61
- * @param data
62
- * | Property | Type | Description |
63
- * | :-- | :-- | :-- |
64
- * | collection_name | String | Collection name |
65
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
66
-
67
- *
68
- * @returns
69
- * | Property | Description |
70
- * | :-- | :-- |
71
- * | status | { error_code: number, reason: string } |
72
- * | partition_names | Array of partition names |
73
- * | partitionIDs | Array of partition IDs |
50
+ * @param {Object} data - The data for the partition.
51
+ * @param {string} data.collection_name - The name of the collection.
52
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
74
53
  *
54
+ * @returns {Promise<ShowPartitionsResponse>} A promise that resolves to the response status.
55
+ * @returns {number} status.error_code - The error code.
56
+ * @returns {string} status.reason - The error reason.
57
+ * @returns {string[]} partition_names - An array of partition names.
58
+ * @returns {number[]} partitionIDs - An array of partition IDs.
75
59
  *
76
- * #### Example
77
- *
60
+ * @example
78
61
  * ```
79
- * new milvusClient(MILUVS_ADDRESS).showPartitions({
62
+ * new milvusClient(MILUVS_ADDRESS).listPartitions({
80
63
  * collection_name: 'my_collection',
81
64
  * });
82
65
  * ```
83
66
  */
84
- showPartitions(data: ShowPartitionsReq): Promise<ShowPartitionsResponse>;
67
+ listPartitions(data: ShowPartitionsReq): Promise<ShowPartitionsResponse>;
68
+ showPartitions: (data: ShowPartitionsReq) => Promise<ShowPartitionsResponse>;
85
69
  /**
86
70
  * Show the statistics information of a partition.
87
71
  *
88
- * @param data
89
- * | Property | Type | Description |
90
- * | :-- | :-- | :-- |
91
- * | collection_name | String | Collection name |
92
- * | partition_name | String | Partition name |
93
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
94
-
95
- *
96
- * @returns
97
- * | Property | Description |
98
- * | :-- | :-- |
99
- * | status | { error_code: number, reason: string } |
100
- * | stats | [{key: string, value: string}] |
101
- * | data | { row_count: 0 } transformed from **stats** |
102
- *
72
+ * @param {Object} data - The data for the partition.
73
+ * @param {string} data.collection_name - The name of the collection.
74
+ * @param {string} data.partition_name - The name of the partition.
75
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
103
76
  *
104
- * #### Example
77
+ * @returns {Promise<StatisticsResponse>} A promise that resolves to the response status.
78
+ * @returns {number} status.error_code - The error code.
79
+ * @returns {string} status.reason - The error reason.
80
+ * @returns {{key: string, value: string}[]} stats - An array of key-value pairs.
81
+ * @returns {Object} data - An object with a `row_count` property, transformed from **stats**.
105
82
  *
83
+ * @example
106
84
  * ```
107
85
  * new milvusClient(MILUVS_ADDRESS).getPartitionStatistics({
108
86
  * collection_name: 'my_collection',
@@ -111,26 +89,22 @@ export declare class Partition extends Index {
111
89
  * ```
112
90
  */
113
91
  getPartitionStatistics(data: GetPartitionStatisticsReq): Promise<StatisticsResponse>;
92
+ getPartitionStats: (data: GetPartitionStatisticsReq) => Promise<StatisticsResponse>;
114
93
  /**
115
- * Load multiple partitions into query nodes.
94
+ * This method is used to load multiple partitions into query nodes.
116
95
  *
117
- * @param data
118
- * | Property | Type | Description |
119
- * | :--- | :-- | :-- |
120
- * | collection_name | String | Collection name |
121
- * | partition_names | String[] | Array of partition names |
122
- * | replica_number? | number | replica number |
123
- * | resource_groups | String[] | resource group names |
124
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
96
+ * @param {Object} data - The data for the operation.
97
+ * @param {string} data.collection_name - The name of the collection.
98
+ * @param {string[]} data.partition_names - An array of partition names to be loaded.
99
+ * @param {number} [data.replica_number] - The number of replicas. Optional.
100
+ * @param {string[]} data.resource_groups - An array of resource group names.
101
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
125
102
  *
126
- * @returns
127
- * | Property | Description |
128
- * | :-- | :-- |
129
- * | error_code | Error code number |
130
- * | reason | Error cause |
131
- *
132
- * #### Example
103
+ * @returns {Promise<ResStatus>} A promise that resolves to the response status.
104
+ * @returns {number} status.error_code - The error code.
105
+ * @returns {string} status.reason - The error reason.
133
106
  *
107
+ * @example
134
108
  * ```
135
109
  * new milvusClient(MILUVS_ADDRESS).loadPartitions({
136
110
  * collection_name: 'my_collection',
@@ -140,24 +114,26 @@ export declare class Partition extends Index {
140
114
  */
141
115
  loadPartitions(data: LoadPartitionsReq): Promise<ResStatus>;
142
116
  /**
143
- * Release a partition from cache.
117
+ * Loads partitions synchronously.
144
118
  *
145
- * @param data
146
- * | Property | Type | Description |
147
- * | :-- | :-- | :-- |
148
- * | collection_name | String | Collection name |
149
- * | partition_names | String[] | Array of partition names |
150
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
151
-
119
+ * @param data - The LoadPartitionsReq object containing the necessary data for loading partitions.
120
+ * @returns A Promise that resolves to a ResStatus object representing the status of the operation.
121
+ * @throws An error if the operation fails.
122
+ */
123
+ loadPartitionsSync(data: LoadPartitionsReq): Promise<ResStatus>;
124
+ /**
125
+ * This method is used to release a partition from cache. This operation is useful when you want to free up memory resources.
152
126
  *
153
- * @returns
154
- * | Property | Description |
155
- * | :-- | :-- |
156
- * | error_code | Error code number |
157
- * | reason | Error cause |
127
+ * @param {Object} data - The data for the operation.
128
+ * @param {string} data.collection_name - The name of the collection from which the partition will be released.
129
+ * @param {string[]} data.partition_names - An array of partition names to be released.
130
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
158
131
  *
159
- * #### Example
132
+ * @returns {Promise<ResStatus>} A promise that resolves to the response status.
133
+ * @returns {number} status.error_code - The error code. If the operation is successful, the error code will be 0.
134
+ * @returns {string} status.reason - The error reason. If the operation is successful, the reason will be an empty string.
160
135
  *
136
+ * @example
161
137
  * ```
162
138
  * new milvusClient(MILUVS_ADDRESS).releasePartitions({
163
139
  * collection_name: 'my_collection',
@@ -167,30 +143,19 @@ export declare class Partition extends Index {
167
143
  */
168
144
  releasePartitions(data: ReleasePartitionsReq): Promise<ResStatus>;
169
145
  /**
170
- * Drop a partition. Note that it will drop all data in the partition.
171
- * Default partition cannot be droped.
172
- * @param data
173
- * @returns
174
- */
175
- /**
176
- * To drop a partition will drop all data in this partition and the `_default` partition cannot be dropped.
177
- *
178
- * @param data
179
- * | Property | Type | Description |
180
- * | :-- | :-- | :-- |
181
- * | collection_name | String | Collection name |
182
- * | partition_name | String | Partition name |
183
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
184
-
146
+ * This method is used to drop a partition from a collection. Note that this operation will delete all data in the partition.
147
+ * The default partition cannot be dropped.
185
148
  *
186
- * @returns
187
- * | Property | Description |
188
- * | :-- | :-- |
189
- * | error_code | Error code number |
190
- * | reason | Error cause |
149
+ * @param {Object} data - The data for the operation.
150
+ * @param {string} data.collection_name - The name of the collection from which the partition will be dropped.
151
+ * @param {string} data.partition_name - The name of the partition to be dropped.
152
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
191
153
  *
192
- * #### Example
154
+ * @returns {Promise<ResStatus>} A promise that resolves to the response status.
155
+ * @returns {number} status.error_code - The error code. If the operation is successful, the error code will be 0.
156
+ * @returns {string} status.reason - The error reason. If the operation is successful, the reason will be an empty string.
193
157
  *
158
+ * @example
194
159
  * ```
195
160
  * new milvusClient(MILUVS_ADDRESS).dropPartition({
196
161
  * collection_name: 'my_collection',
@@ -13,25 +13,24 @@ exports.Partition = void 0;
13
13
  const MilvusIndex_1 = require("./MilvusIndex");
14
14
  const __1 = require("../");
15
15
  class Partition extends MilvusIndex_1.Index {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.showPartitions = this.listPartitions;
19
+ this.getPartitionStats = this.getPartitionStatistics;
20
+ }
16
21
  /**
17
22
  * Create a partition in a collection.
18
23
  *
19
- * @param data
20
- * | Property | Type | Description |
21
- * | :-- | :-- | :-- |
22
- * | collection_name | String | Collection name |
23
- * | partition_name | String | Partition name |
24
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
25
-
26
- *
27
- * @returns
28
- * | Property | Description |
29
- * | :-- | :-- |
30
- * | error_code | Error code number |
31
- * | reason | Error cause |
24
+ * @param {Object} data - The data for the partition.
25
+ * @param {string} data.collection_name - The name of the collection.
26
+ * @param {string} data.partition_name - The name of the partition.
27
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
32
28
  *
33
- * #### Example
29
+ * @returns {Promise<ResStatus>} A promise that resolves to the response status.
30
+ * @returns {number} status.error_code - The error code.
31
+ * @returns {string} status.reason - The error reason.
34
32
  *
33
+ * @example
35
34
  * ```
36
35
  * new milvusClient(MILUVS_ADDRESS).createPartition({
37
36
  * collection_name: 'my_collection',
@@ -42,29 +41,24 @@ class Partition extends MilvusIndex_1.Index {
42
41
  createPartition(data) {
43
42
  return __awaiter(this, void 0, void 0, function* () {
44
43
  (0, __1.checkCollectionAndPartitionName)(data);
45
- const promise = yield (0, __1.promisify)(this.client, 'CreatePartition', data, data.timeout || this.timeout);
44
+ const promise = yield (0, __1.promisify)(this.channelPool, 'CreatePartition', data, data.timeout || this.timeout);
46
45
  return promise;
47
46
  });
48
47
  }
49
48
  /**
50
49
  * Check if a partition exists in a collection.
51
50
  *
52
- * @param data
53
- * | Property | Type | Description |
54
- * | :-- | :-- | :-- |
55
- * | collection_name | string | Collection name |
56
- * | partition_name | string | Parititon name |
57
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
58
-
59
- *
60
- * @returns
61
- * | Property | Description |
62
- * | :-- | :-- |
63
- * | status | { error_code: number,reason:string } |
64
- * | value | `true` or `false` |
51
+ * @param {Object} data - The data for the partition.
52
+ * @param {string} data.collection_name - The name of the collection.
53
+ * @param {string} data.partition_name - The name of the partition.
54
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
65
55
  *
66
- * #### Example
56
+ * @returns {Promise<BoolResponse>} A promise that resolves to the response status.
57
+ * @returns {number} status.error_code - The error code.
58
+ * @returns {string} status.reason - The error reason.
59
+ * @returns {boolean} value - `true` if the partition exists, `false` otherwise.
67
60
  *
61
+ * @example
68
62
  * ```
69
63
  * new milvusClient(MILUVS_ADDRESS).hasPartition({
70
64
  * collection_name: 'my_collection',
@@ -75,64 +69,52 @@ class Partition extends MilvusIndex_1.Index {
75
69
  hasPartition(data) {
76
70
  return __awaiter(this, void 0, void 0, function* () {
77
71
  (0, __1.checkCollectionAndPartitionName)(data);
78
- const promise = yield (0, __1.promisify)(this.client, 'HasPartition', data, data.timeout || this.timeout);
72
+ const promise = yield (0, __1.promisify)(this.channelPool, 'HasPartition', data, data.timeout || this.timeout);
79
73
  return promise;
80
74
  });
81
75
  }
82
76
  /**
83
77
  * Show all partitions in a collection.
84
78
  *
85
- * @param data
86
- * | Property | Type | Description |
87
- * | :-- | :-- | :-- |
88
- * | collection_name | String | Collection name |
89
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
90
-
91
- *
92
- * @returns
93
- * | Property | Description |
94
- * | :-- | :-- |
95
- * | status | { error_code: number, reason: string } |
96
- * | partition_names | Array of partition names |
97
- * | partitionIDs | Array of partition IDs |
98
- *
79
+ * @param {Object} data - The data for the partition.
80
+ * @param {string} data.collection_name - The name of the collection.
81
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
99
82
  *
100
- * #### Example
83
+ * @returns {Promise<ShowPartitionsResponse>} A promise that resolves to the response status.
84
+ * @returns {number} status.error_code - The error code.
85
+ * @returns {string} status.reason - The error reason.
86
+ * @returns {string[]} partition_names - An array of partition names.
87
+ * @returns {number[]} partitionIDs - An array of partition IDs.
101
88
  *
89
+ * @example
102
90
  * ```
103
- * new milvusClient(MILUVS_ADDRESS).showPartitions({
91
+ * new milvusClient(MILUVS_ADDRESS).listPartitions({
104
92
  * collection_name: 'my_collection',
105
93
  * });
106
94
  * ```
107
95
  */
108
- showPartitions(data) {
96
+ listPartitions(data) {
109
97
  return __awaiter(this, void 0, void 0, function* () {
110
98
  (0, __1.checkCollectionName)(data);
111
- const promise = yield (0, __1.promisify)(this.client, 'ShowPartitions', data, data.timeout || this.timeout);
99
+ const promise = yield (0, __1.promisify)(this.channelPool, 'ShowPartitions', data, data.timeout || this.timeout);
112
100
  return promise;
113
101
  });
114
102
  }
115
103
  /**
116
104
  * Show the statistics information of a partition.
117
105
  *
118
- * @param data
119
- * | Property | Type | Description |
120
- * | :-- | :-- | :-- |
121
- * | collection_name | String | Collection name |
122
- * | partition_name | String | Partition name |
123
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
124
-
106
+ * @param {Object} data - The data for the partition.
107
+ * @param {string} data.collection_name - The name of the collection.
108
+ * @param {string} data.partition_name - The name of the partition.
109
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
125
110
  *
126
- * @returns
127
- * | Property | Description |
128
- * | :-- | :-- |
129
- * | status | { error_code: number, reason: string } |
130
- * | stats | [{key: string, value: string}] |
131
- * | data | { row_count: 0 } transformed from **stats** |
132
- *
133
- *
134
- * #### Example
111
+ * @returns {Promise<StatisticsResponse>} A promise that resolves to the response status.
112
+ * @returns {number} status.error_code - The error code.
113
+ * @returns {string} status.reason - The error reason.
114
+ * @returns {{key: string, value: string}[]} stats - An array of key-value pairs.
115
+ * @returns {Object} data - An object with a `row_count` property, transformed from **stats**.
135
116
  *
117
+ * @example
136
118
  * ```
137
119
  * new milvusClient(MILUVS_ADDRESS).getPartitionStatistics({
138
120
  * collection_name: 'my_collection',
@@ -143,31 +125,26 @@ class Partition extends MilvusIndex_1.Index {
143
125
  getPartitionStatistics(data) {
144
126
  return __awaiter(this, void 0, void 0, function* () {
145
127
  (0, __1.checkCollectionAndPartitionName)(data);
146
- const promise = yield (0, __1.promisify)(this.client, 'GetPartitionStatistics', data, data.timeout || this.timeout);
128
+ const promise = yield (0, __1.promisify)(this.channelPool, 'GetPartitionStatistics', data, data.timeout || this.timeout);
147
129
  promise.data = (0, __1.formatKeyValueData)(promise.stats, ['row_count']);
148
130
  return promise;
149
131
  });
150
132
  }
151
133
  /**
152
- * Load multiple partitions into query nodes.
153
- *
154
- * @param data
155
- * | Property | Type | Description |
156
- * | :--- | :-- | :-- |
157
- * | collection_name | String | Collection name |
158
- * | partition_names | String[] | Array of partition names |
159
- * | replica_number? | number | replica number |
160
- * | resource_groups | String[] | resource group names |
161
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
134
+ * This method is used to load multiple partitions into query nodes.
162
135
  *
163
- * @returns
164
- * | Property | Description |
165
- * | :-- | :-- |
166
- * | error_code | Error code number |
167
- * | reason | Error cause |
136
+ * @param {Object} data - The data for the operation.
137
+ * @param {string} data.collection_name - The name of the collection.
138
+ * @param {string[]} data.partition_names - An array of partition names to be loaded.
139
+ * @param {number} [data.replica_number] - The number of replicas. Optional.
140
+ * @param {string[]} data.resource_groups - An array of resource group names.
141
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
168
142
  *
169
- * #### Example
143
+ * @returns {Promise<ResStatus>} A promise that resolves to the response status.
144
+ * @returns {number} status.error_code - The error code.
145
+ * @returns {string} status.reason - The error reason.
170
146
  *
147
+ * @example
171
148
  * ```
172
149
  * new milvusClient(MILUVS_ADDRESS).loadPartitions({
173
150
  * collection_name: 'my_collection',
@@ -181,29 +158,53 @@ class Partition extends MilvusIndex_1.Index {
181
158
  if (!Array.isArray(data.partition_names) || !data.partition_names.length) {
182
159
  throw new Error(__1.ERROR_REASONS.PARTITION_NAMES_IS_REQUIRED);
183
160
  }
184
- const promise = yield (0, __1.promisify)(this.client, 'LoadPartitions', data, data.timeout || this.timeout);
161
+ const promise = yield (0, __1.promisify)(this.channelPool, 'LoadPartitions', data, data.timeout || this.timeout);
185
162
  return promise;
186
163
  });
187
164
  }
188
165
  /**
189
- * Release a partition from cache.
166
+ * Loads partitions synchronously.
190
167
  *
191
- * @param data
192
- * | Property | Type | Description |
193
- * | :-- | :-- | :-- |
194
- * | collection_name | String | Collection name |
195
- * | partition_names | String[] | Array of partition names |
196
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
197
-
168
+ * @param data - The LoadPartitionsReq object containing the necessary data for loading partitions.
169
+ * @returns A Promise that resolves to a ResStatus object representing the status of the operation.
170
+ * @throws An error if the operation fails.
171
+ */
172
+ loadPartitionsSync(data) {
173
+ return __awaiter(this, void 0, void 0, function* () {
174
+ (0, __1.checkCollectionName)(data);
175
+ const promise = yield (0, __1.promisify)(this.channelPool, 'LoadPartitions', data, data.timeout || this.timeout);
176
+ if (promise.error_code !== __1.ErrorCode.SUCCESS) {
177
+ throw new Error(`ErrorCode: ${promise.error_code}. Reason: ${promise.reason}`);
178
+ }
179
+ let loadedPercentage = 0;
180
+ while (Number(loadedPercentage) < 100) {
181
+ let res = yield this.getLoadingProgress({
182
+ collection_name: data.collection_name,
183
+ partition_names: data.partition_names,
184
+ });
185
+ if (res.status.error_code !== __1.ErrorCode.SUCCESS) {
186
+ throw new Error(`ErrorCode: ${res.status.error_code}. Reason: ${res.status.reason}`);
187
+ }
188
+ loadedPercentage = Number(res.progress);
189
+ // sleep 400ms
190
+ yield (0, __1.sleep)(400);
191
+ }
192
+ return promise;
193
+ });
194
+ }
195
+ /**
196
+ * This method is used to release a partition from cache. This operation is useful when you want to free up memory resources.
198
197
  *
199
- * @returns
200
- * | Property | Description |
201
- * | :-- | :-- |
202
- * | error_code | Error code number |
203
- * | reason | Error cause |
198
+ * @param {Object} data - The data for the operation.
199
+ * @param {string} data.collection_name - The name of the collection from which the partition will be released.
200
+ * @param {string[]} data.partition_names - An array of partition names to be released.
201
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
204
202
  *
205
- * #### Example
203
+ * @returns {Promise<ResStatus>} A promise that resolves to the response status.
204
+ * @returns {number} status.error_code - The error code. If the operation is successful, the error code will be 0.
205
+ * @returns {string} status.reason - The error reason. If the operation is successful, the reason will be an empty string.
206
206
  *
207
+ * @example
207
208
  * ```
208
209
  * new milvusClient(MILUVS_ADDRESS).releasePartitions({
209
210
  * collection_name: 'my_collection',
@@ -217,35 +218,24 @@ class Partition extends MilvusIndex_1.Index {
217
218
  if (!Array.isArray(data.partition_names) || !data.partition_names.length) {
218
219
  throw new Error(__1.ERROR_REASONS.PARTITION_NAMES_IS_REQUIRED);
219
220
  }
220
- const promise = yield (0, __1.promisify)(this.client, 'ReleasePartitions', data, data.timeout || this.timeout);
221
+ const promise = yield (0, __1.promisify)(this.channelPool, 'ReleasePartitions', data, data.timeout || this.timeout);
221
222
  return promise;
222
223
  });
223
224
  }
224
225
  /**
225
- * Drop a partition. Note that it will drop all data in the partition.
226
- * Default partition cannot be droped.
227
- * @param data
228
- * @returns
229
- */
230
- /**
231
- * To drop a partition will drop all data in this partition and the `_default` partition cannot be dropped.
232
- *
233
- * @param data
234
- * | Property | Type | Description |
235
- * | :-- | :-- | :-- |
236
- * | collection_name | String | Collection name |
237
- * | partition_name | String | Partition name |
238
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
239
-
226
+ * This method is used to drop a partition from a collection. Note that this operation will delete all data in the partition.
227
+ * The default partition cannot be dropped.
240
228
  *
241
- * @returns
242
- * | Property | Description |
243
- * | :-- | :-- |
244
- * | error_code | Error code number |
245
- * | reason | Error cause |
229
+ * @param {Object} data - The data for the operation.
230
+ * @param {string} data.collection_name - The name of the collection from which the partition will be dropped.
231
+ * @param {string} data.partition_name - The name of the partition to be dropped.
232
+ * @param {number} [data.timeout] - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.
246
233
  *
247
- * #### Example
234
+ * @returns {Promise<ResStatus>} A promise that resolves to the response status.
235
+ * @returns {number} status.error_code - The error code. If the operation is successful, the error code will be 0.
236
+ * @returns {string} status.reason - The error reason. If the operation is successful, the reason will be an empty string.
248
237
  *
238
+ * @example
249
239
  * ```
250
240
  * new milvusClient(MILUVS_ADDRESS).dropPartition({
251
241
  * collection_name: 'my_collection',
@@ -256,7 +246,7 @@ class Partition extends MilvusIndex_1.Index {
256
246
  dropPartition(data) {
257
247
  return __awaiter(this, void 0, void 0, function* () {
258
248
  (0, __1.checkCollectionAndPartitionName)(data);
259
- const promise = yield (0, __1.promisify)(this.client, 'DropPartition', data, data.timeout || this.timeout);
249
+ const promise = yield (0, __1.promisify)(this.channelPool, 'DropPartition', data, data.timeout || this.timeout);
260
250
  return promise;
261
251
  });
262
252
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Partition.js","sourceRoot":"","sources":["../../../milvus/grpc/Partition.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAsC;AACtC,2BAiBa;AAEb,MAAa,SAAU,SAAQ,mBAAK;IAClC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,eAAe,CAAC,IAAwB;;YAC5C,IAAA,mCAA+B,EAAC,IAAI,CAAC,CAAC;YACtC,MAAM,OAAO,GAAG,MAAM,IAAA,aAAS,EAC7B,IAAI,CAAC,MAAM,EACX,iBAAiB,EACjB,IAAI,EACJ,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAC7B,CAAC;YACF,OAAO,OAAO,CAAC;QACjB,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,YAAY,CAAC,IAAqB;;YACtC,IAAA,mCAA+B,EAAC,IAAI,CAAC,CAAC;YACtC,MAAM,OAAO,GAAG,MAAM,IAAA,aAAS,EAC7B,IAAI,CAAC,MAAM,EACX,cAAc,EACd,IAAI,EACJ,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAC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