@zilliz/milvus2-sdk-node 2.2.3 → 2.2.5

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 (93) hide show
  1. package/README.md +4 -21
  2. package/dist/milvus/BaseClient.d.ts +17 -0
  3. package/dist/milvus/BaseClient.js +58 -0
  4. package/dist/milvus/BaseClient.js.map +1 -0
  5. package/dist/milvus/Collection.d.ts +263 -171
  6. package/dist/milvus/Collection.js +328 -233
  7. package/dist/milvus/Collection.js.map +1 -1
  8. package/dist/milvus/Data.d.ts +142 -142
  9. package/dist/milvus/Data.js +211 -216
  10. package/dist/milvus/Data.js.map +1 -1
  11. package/dist/milvus/MilvusClient.d.ts +17 -0
  12. package/dist/milvus/MilvusClient.js +163 -0
  13. package/dist/milvus/MilvusClient.js.map +1 -0
  14. package/dist/milvus/MilvusIndex.d.ts +64 -60
  15. package/dist/milvus/MilvusIndex.js +74 -69
  16. package/dist/milvus/MilvusIndex.js.map +1 -1
  17. package/dist/milvus/Partition.d.ts +95 -88
  18. package/dist/milvus/Partition.js +108 -101
  19. package/dist/milvus/Partition.js.map +1 -1
  20. package/dist/milvus/Resource.d.ts +172 -0
  21. package/dist/milvus/Resource.js +356 -0
  22. package/dist/milvus/Resource.js.map +1 -0
  23. package/dist/milvus/User.d.ts +136 -110
  24. package/dist/milvus/User.js +171 -140
  25. package/dist/milvus/User.js.map +1 -1
  26. package/dist/milvus/Utils.d.ts +1 -1
  27. package/dist/milvus/Utils.js +1 -1
  28. package/dist/milvus/Utils.js.map +1 -1
  29. package/dist/milvus/const/Milvus.d.ts +270 -0
  30. package/dist/milvus/const/Milvus.js +370 -1
  31. package/dist/milvus/const/Milvus.js.map +1 -1
  32. package/dist/milvus/index.d.ts +11 -46
  33. package/dist/milvus/index.js +16 -186
  34. package/dist/milvus/index.js.map +1 -1
  35. package/dist/milvus/types/Collection.d.ts +88 -8
  36. package/dist/milvus/types/Collection.js +1 -9
  37. package/dist/milvus/types/Collection.js.map +1 -1
  38. package/dist/milvus/types/Common.d.ts +11 -267
  39. package/dist/milvus/types/Common.js +1 -369
  40. package/dist/milvus/types/Common.js.map +1 -1
  41. package/dist/milvus/types/Data.d.ts +154 -1
  42. package/dist/milvus/types/Index.d.ts +20 -1
  43. package/dist/milvus/types/Partition.d.ts +8 -1
  44. package/dist/milvus/types/Resource.d.ts +44 -0
  45. package/dist/milvus/types/{Search.js → Resource.js} +1 -1
  46. package/dist/milvus/types/Resource.js.map +1 -0
  47. package/dist/milvus/types/Response.d.ts +0 -246
  48. package/dist/milvus/types/Response.js.map +1 -1
  49. package/dist/milvus/types/User.d.ts +54 -2
  50. package/dist/milvus/types.d.ts +8 -7
  51. package/dist/milvus/types.js +2 -1
  52. package/dist/milvus/types.js.map +1 -1
  53. package/dist/proto/proto/common.proto +23 -2
  54. package/dist/proto/proto/feder.proto +40 -0
  55. package/dist/proto/proto/google/protobuf/descriptor.proto +31 -1
  56. package/dist/proto/proto/milvus.proto +101 -0
  57. package/dist/proto/proto/msg.proto +107 -0
  58. package/dist/proto/proto/schema.proto +18 -23
  59. package/dist/sdk.json +1 -1
  60. package/dist/utils/Blob.js.map +1 -0
  61. package/dist/{milvus/utils → utils}/Format.d.ts +12 -11
  62. package/dist/{milvus/utils → utils}/Format.js +18 -17
  63. package/dist/utils/Format.js.map +1 -0
  64. package/dist/utils/Function.d.ts +4 -0
  65. package/dist/utils/Function.js +33 -0
  66. package/dist/utils/Function.js.map +1 -0
  67. package/dist/utils/Grpc.d.ts +19 -0
  68. package/dist/utils/Grpc.js +64 -0
  69. package/dist/utils/Grpc.js.map +1 -0
  70. package/dist/utils/Validate.d.ts +21 -0
  71. package/dist/{milvus/utils → utils}/Validate.js +28 -6
  72. package/dist/utils/Validate.js.map +1 -0
  73. package/dist/utils/index.d.ts +5 -7
  74. package/dist/utils/index.js +17 -52
  75. package/dist/utils/index.js.map +1 -1
  76. package/dist/utils/test.d.ts +14 -0
  77. package/dist/utils/test.js +68 -0
  78. package/dist/utils/test.js.map +1 -0
  79. package/package.json +7 -12
  80. package/dist/milvus/Client.d.ts +0 -12
  81. package/dist/milvus/Client.js +0 -28
  82. package/dist/milvus/Client.js.map +0 -1
  83. package/dist/milvus/types/Search.d.ts +0 -81
  84. package/dist/milvus/types/Search.js.map +0 -1
  85. package/dist/milvus/utils/Blob.js.map +0 -1
  86. package/dist/milvus/utils/Format.js.map +0 -1
  87. package/dist/milvus/utils/Validate.d.ts +0 -9
  88. package/dist/milvus/utils/Validate.js.map +0 -1
  89. package/dist/milvus/utils/index.d.ts +0 -3
  90. package/dist/milvus/utils/index.js +0 -10
  91. package/dist/milvus/utils/index.js.map +0 -1
  92. /package/dist/{milvus/utils → utils}/Blob.d.ts +0 -0
  93. /package/dist/{milvus/utils → utils}/Blob.js +0 -0
@@ -40,7 +40,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
40
40
  function verb(n) { return function (v) { return step([n, v]); }; }
41
41
  function step(op) {
42
42
  if (f) throw new TypeError("Generator is already executing.");
43
- while (_) try {
43
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
44
44
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
45
45
  if (y = 0, t) op = [op[0] & 2, t.value];
46
46
  switch (op[0]) {
@@ -64,8 +64,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
64
64
  Object.defineProperty(exports, "__esModule", { value: true });
65
65
  exports.Index = void 0;
66
66
  var utils_1 = require("../utils");
67
- var Client_1 = require("./Client");
68
- var Format_1 = require("./utils/Format");
67
+ var Data_1 = require("./Data");
68
+ var utils_2 = require("../utils");
69
69
  var Index = /** @class */ (function (_super) {
70
70
  __extends(Index, _super);
71
71
  function Index() {
@@ -75,25 +75,26 @@ var Index = /** @class */ (function (_super) {
75
75
  * Create an index on a vector field. Note that index building is an async progress.
76
76
  *
77
77
  * @param data
78
- * | Property | Type | Description |
79
- * | :----------------- | :---- | :------------------------------- |
80
- * | collection_name | String | Collection name |
81
- * | field_name | String | Field name |
82
- * | index_name | String | Index name is unique in one collection |
83
- * | extra_params | Object | Parameters: { index_type: string; metric_type: string; params: string; }; |
84
- * | 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 |
78
+ * | Property | Type | Description |
79
+ * | :-- | :-- | :-- |
80
+ * | collection_name | String | Collection name |
81
+ * | field_name | String | Field name |
82
+ * | index_name | String | Index name is unique in one collection |
83
+ * | extra_params | Object | Parameters: { index_type: string; metric_type: string; params: string; }; |
84
+ * | 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 |
85
+
85
86
  *
86
- * @return
87
- * | Property | Description |
88
- * | :-------------| :-------- |
89
- * | error_code | Error code number |
90
- * | reason | Error cause |
87
+ * @returns
88
+ * | Property | Description |
89
+ * | :-- | :-- |
90
+ * | error_code | Error code number |
91
+ * | reason | Error cause |
91
92
  *
92
93
  *
93
94
  * #### Example
94
95
  *
95
96
  * ```
96
- * new milvusClient(MILUVS_ADDRESS).collectionManager.createIndex({
97
+ * new milvusClient(MILUVS_ADDRESS).createIndex({
97
98
  * collection_name: 'my_collection',
98
99
  * field_name: "vector_01",
99
100
  * extra_params: {
@@ -110,9 +111,9 @@ var Index = /** @class */ (function (_super) {
110
111
  return __generator(this, function (_a) {
111
112
  switch (_a.label) {
112
113
  case 0:
113
- this.checkCollectionName(data);
114
- params = __assign(__assign({}, data), { extra_params: (0, Format_1.parseToKeyValue)(data.extra_params) });
115
- return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'CreateIndex', params, data.timeout)];
114
+ (0, utils_2.checkCollectionName)(data);
115
+ params = __assign(__assign({}, data), { extra_params: (0, utils_2.parseToKeyValue)(data.extra_params) });
116
+ return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'CreateIndex', params, data.timeout)];
116
117
  case 1:
117
118
  promise = _a.sent();
118
119
  return [2 /*return*/, promise];
@@ -124,14 +125,15 @@ var Index = /** @class */ (function (_super) {
124
125
  * Show index information. Current release of Milvus only supports showing latest built index.
125
126
  *
126
127
  * @param data
127
- * | Property | Type | Description |
128
- * | :----------------- | :---- | :------------------------------- |
129
- * | collection_name | String | Collection name |
130
- * | 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 |
128
+ * | Property | Type | Description |
129
+ * | :-- | :-- | :-- |
130
+ * | collection_name | String | Collection name |
131
+ * | 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 |
132
+
131
133
  *
132
- * @return
134
+ * @returns
133
135
  * | Property | Description |
134
- * | :-------------| :-------- |
136
+ * | :-- | :-- |
135
137
  * | status | { error_code: number, reason: string } |
136
138
  * | index_descriptions | Index information |
137
139
  *
@@ -139,7 +141,7 @@ var Index = /** @class */ (function (_super) {
139
141
  * #### Example
140
142
  *
141
143
  * ```
142
- * new milvusClient(MILUVS_ADDRESS).indexManager.describeIndex({
144
+ * new milvusClient(MILUVS_ADDRESS).describeIndex({
143
145
  * collection_name: 'my_collection',
144
146
  * });
145
147
  * ```
@@ -150,8 +152,8 @@ var Index = /** @class */ (function (_super) {
150
152
  return __generator(this, function (_a) {
151
153
  switch (_a.label) {
152
154
  case 0:
153
- this.checkCollectionName(data);
154
- return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'DescribeIndex', data, data.timeout)];
155
+ (0, utils_2.checkCollectionName)(data);
156
+ return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'DescribeIndex', data, data.timeout)];
155
157
  case 1:
156
158
  promise = _a.sent();
157
159
  return [2 /*return*/, promise];
@@ -163,23 +165,24 @@ var Index = /** @class */ (function (_super) {
163
165
  * Show index building state.
164
166
  *
165
167
  * @param data
166
- * | Property | Type | Description |
167
- * | :----------------- | :---- | :------------------------------- |
168
- * | collection_name | string | Collection name |
169
- * | field_name | string | Field name |
170
- * | 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 |
168
+ * | Property | Type | Description |
169
+ * | :-- | :-- | :-- |
170
+ * | collection_name | string | Collection name |
171
+ * | field_name | string | Field name |
172
+ * | 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 |
173
+
171
174
  *
172
- * @return
173
- * | Property | Description |
174
- * | :-------------| :-------- |
175
- * | status | { error_code: number, reason: string } |
176
- * | state | Index building state |
175
+ * @returns
176
+ * | Property | Description |
177
+ * | :-- | :-- |
178
+ * | status | { error_code: number, reason: string } |
179
+ * | state | Index building state |
177
180
  *
178
181
  *
179
182
  * #### Example
180
183
  *
181
184
  * ```
182
- * new milvusClient(MILUVS_ADDRESS).indexManager.getIndexState({
185
+ * new milvusClient(MILUVS_ADDRESS).getIndexState({
183
186
  * collection_name: 'my_collection',
184
187
  * });
185
188
  * ```
@@ -190,8 +193,8 @@ var Index = /** @class */ (function (_super) {
190
193
  return __generator(this, function (_a) {
191
194
  switch (_a.label) {
192
195
  case 0:
193
- this.checkCollectionName(data);
194
- return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'GetIndexState', data, data.timeout)];
196
+ (0, utils_2.checkCollectionName)(data);
197
+ return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'GetIndexState', data, data.timeout)];
195
198
  case 1:
196
199
  promise = _a.sent();
197
200
  return [2 /*return*/, promise];
@@ -203,25 +206,26 @@ var Index = /** @class */ (function (_super) {
203
206
  * Show index building progress.
204
207
  *
205
208
  * @param data
206
- * | Property | Type | Description |
207
- * | :----------------- | :---- | :------------------------------- |
208
- * | collection_name | String | Collection name |
209
- * | field_name | String | Field name |
210
- * | 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 |
209
+ * | Property | Type | Description |
210
+ * | :-- | :-- | :-- |
211
+ * | collection_name | String | Collection name |
212
+ * | field_name | String | Field name |
213
+ * | 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 |
214
+
211
215
  *
212
- * @return
213
- * | Property | Description |
214
- * | :-------------| :-------- |
215
- * | status | { error_code: number, reason: string } |
216
- * | indexed_rows | Row count that successfully built with index |
217
- * | total_rows | Total row count |
216
+ * @returns
217
+ * | Property | Description |
218
+ * | :-- | :-- |
219
+ * | status | { error_code: number, reason: string } |
220
+ * | indexed_rows | Row count that successfully built with index |
221
+ * | total_rows | Total row count |
218
222
  *
219
223
  *
220
224
  *
221
225
  * #### Example
222
226
  *
223
227
  * ```
224
- * new milvusClient(MILUVS_ADDRESS).indexManager.getIndexBuildProgress({
228
+ * new milvusClient(MILUVS_ADDRESS).getIndexBuildProgress({
225
229
  * collection_name: 'my_collection',
226
230
  * });
227
231
  * ```
@@ -232,8 +236,8 @@ var Index = /** @class */ (function (_super) {
232
236
  return __generator(this, function (_a) {
233
237
  switch (_a.label) {
234
238
  case 0:
235
- this.checkCollectionName(data);
236
- return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'GetIndexBuildProgress', data, data.timeout)];
239
+ (0, utils_2.checkCollectionName)(data);
240
+ return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'GetIndexBuildProgress', data, data.timeout)];
237
241
  case 1:
238
242
  promise = _a.sent();
239
243
  return [2 /*return*/, promise];
@@ -245,22 +249,23 @@ var Index = /** @class */ (function (_super) {
245
249
  * Drop an index.
246
250
  *
247
251
  * @param data
248
- * | Property | Type | Description |
249
- * | :----------------- | :---- | :------------------------------- |
250
- * | collection_name | String | Collection name |
251
- * | field_name | String | Field name |
252
- * | 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 |
252
+ * | Property | Type | Description |
253
+ * | :-- | :-- | :-- |
254
+ * | collection_name | String | Collection name |
255
+ * | field_name | String | Field name |
256
+ * | 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 |
257
+
253
258
  *
254
- * @return
255
- * | Property | Description |
256
- * | :-------------| :-------- |
257
- * | error_code | Error code number |
258
- * | reason | Error cause |
259
+ * @returns
260
+ * | Property | Description |
261
+ * | :-- | :-- |
262
+ * | error_code | Error code number |
263
+ * | reason | Error cause |
259
264
  *
260
265
  * #### Example
261
266
  *
262
267
  * ```
263
- * new milvusClient(MILUVS_ADDRESS).indexManager.dropIndex({
268
+ * new milvusClient(MILUVS_ADDRESS).dropIndex({
264
269
  * collection_name: 'my_collection',
265
270
  * });
266
271
  * ```
@@ -271,8 +276,8 @@ var Index = /** @class */ (function (_super) {
271
276
  return __generator(this, function (_a) {
272
277
  switch (_a.label) {
273
278
  case 0:
274
- this.checkCollectionName(data);
275
- return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'DropIndex', data, data.timeout)];
279
+ (0, utils_2.checkCollectionName)(data);
280
+ return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'DropIndex', data, data.timeout)];
276
281
  case 1:
277
282
  promise = _a.sent();
278
283
  return [2 /*return*/, promise];
@@ -281,6 +286,6 @@ var Index = /** @class */ (function (_super) {
281
286
  });
282
287
  };
283
288
  return Index;
284
- }(Client_1.Client));
289
+ }(Data_1.Data));
285
290
  exports.Index = Index;
286
291
  //# sourceMappingURL=MilvusIndex.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MilvusIndex.js","sourceRoot":"","sources":["../../milvus/MilvusIndex.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAAqC;AACrC,mCAAkC;AAclC,yCAAiD;AAEjD;IAA2B,yBAAM;IAAjC;;IAmMA,CAAC;IAlMC;;;;;;;;;;;;;;;;;;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AAC,UAAU,EACf,eAAe,EACf,IAAI,EACJ,IAAI,CAAC,OAAO,CACb,EAAA;;wBALK,OAAO,GAAG,SAKf;wBACD,sBAAO,OAAO,EAAC;;;;KAChB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,6BAAa,GAAnB,UAAoB,IAAsB;;;;;;wBACxC,IAAA,2BAAmB,EAAC,IAAI,CAAC,CAAC;wBACV,qBAAM,IAAA,iBAAS,EAC7B,IAAI,CAAC,UAAU,EACf,eAAe,EACf,IAAI,EACJ,IAAI,CAAC,OAAO,CACb,EAAA;;wBALK,OAAO,GAAG,SAKf;wBACD,sBAAO,OAAO,EAAC;;;;KAChB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACG,qCAAqB,GAA3B,UACE,IAA8B;;;;;;wBAE9B,IAAA,2BAAmB,EAAC,IAAI,CAAC,CAAC;wBACV,qBAAM,IAAA,iBAAS,EAC7B,IAAI,CAAC,UAAU,EACf,uBAAuB,EACvB,IAAI,EACJ,IAAI,CAAC,OAAO,CACb,EAAA;;wBALK,OAAO,GAAG,SAKf;wBACD,sBAAO,OAAO,EAAC;;;;KAChB;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,yBAAS,GAAf,UAAgB,IAAkB;;;;;;wBAChC,IAAA,2BAAmB,EAAC,IAAI,CAAC,CAAC;wBACV,qBAAM,IAAA,iBAAS,EAC7B,IAAI,CAAC,UAAU,EACf,WAAW,EACX,IAAI,EACJ,IAAI,CAAC,OAAO,CACb,EAAA;;wBALK,OAAO,GAAG,SAKf;wBACD,sBAAO,OAAO,EAAC;;;;KAChB;IACH,YAAC;AAAD,CAAC,AAxMD,CAA2B,WAAI,GAwM9B;AAxMY,sBAAK"}
@@ -1,27 +1,27 @@
1
- import { Client } from './Client';
2
- import { ResStatus, BoolResponse, ShowPartitionsResponse, StatisticsResponse } from './types';
3
- import { CreatePartitionReq, DropPartitionReq, GetPartitionStatisticsReq, HasPartitionReq, LoadPartitionsReq, ReleasePartitionsReq, ShowPartitionsReq } from './types/Partition';
4
- export declare class Partition extends Client {
1
+ import { Index } from './MilvusIndex';
2
+ import { CreatePartitionReq, DropPartitionReq, GetPartitionStatisticsReq, HasPartitionReq, LoadPartitionsReq, ReleasePartitionsReq, ShowPartitionsReq, ResStatus, BoolResponse, ShowPartitionsResponse, StatisticsResponse } from '.';
3
+ export declare class Partition extends Index {
5
4
  /**
6
5
  * Create a partition in a collection.
7
6
  *
8
7
  * @param data
9
- * | Property | Type | Description |
10
- * | :----------------- | :---- | :------------------------------- |
11
- * | collection_name | String | Collection name |
12
- * | partition_name | String | Partition name |
13
- * | 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 |
14
- *
15
- * @return
16
- * | Property | Description |
17
- * | :-------------| :-------- |
18
- * | error_code | Error code number |
19
- * | reason | Error cause | *
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
20
  *
21
21
  * #### Example
22
22
  *
23
23
  * ```
24
- * new milvusClient(MILUVS_ADDRESS).partitionManager.createPartition({
24
+ * new milvusClient(MILUVS_ADDRESS).createPartition({
25
25
  * collection_name: 'my_collection',
26
26
  * partition_name: 'my_partition',
27
27
  * });
@@ -32,22 +32,23 @@ export declare class Partition extends Client {
32
32
  * Check if a partition exists in a collection.
33
33
  *
34
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
- * @return
42
- * | Property | Description |
43
- * | :-------------| :------------------------------- |
44
- * | status | { error_code: number,reason:string }|
45
- * | value | `true` or `false` |
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` |
46
47
  *
47
48
  * #### Example
48
49
  *
49
50
  * ```
50
- * new milvusClient(MILUVS_ADDRESS).partitionManager.hasPartition({
51
+ * new milvusClient(MILUVS_ADDRESS).hasPartition({
51
52
  * collection_name: 'my_collection',
52
53
  * partition_name: 'my_partition',
53
54
  * });
@@ -58,23 +59,24 @@ export declare class Partition extends Client {
58
59
  * Show all partitions in a collection.
59
60
  *
60
61
  * @param data
61
- * | Property | Type | Description |
62
- * | :----------------- | :---- | :------------------------------- |
63
- * | collection_name | String | Collection name |
64
- * | 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 |
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
+
65
67
  *
66
- * @return
67
- * | Property | Description |
68
- * | :-------------| :------------------------------- |
69
- * | status | { error_code: number, reason: string }|
70
- * | partition_names | Array of partition names |
71
- * | partitionIDs | Array of partition IDs |
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 |
72
74
  *
73
75
  *
74
76
  * #### Example
75
77
  *
76
78
  * ```
77
- * new milvusClient(MILUVS_ADDRESS).partitionManager.showPartitions({
79
+ * new milvusClient(MILUVS_ADDRESS).showPartitions({
78
80
  * collection_name: 'my_collection',
79
81
  * });
80
82
  * ```
@@ -84,24 +86,25 @@ export declare class Partition extends Client {
84
86
  * Show the statistics information of a partition.
85
87
  *
86
88
  * @param data
87
- * | Property | Type | Description |
88
- * | :----------------- | :---- | :------------------------------- |
89
- * | collection_name | String | Collection name |
90
- * | partition_name | String | Partition name |
91
- * | 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 |
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
+
92
95
  *
93
- * @return
94
- * | Property | Description |
95
- * | :-------------| :------------------------------- |
96
- * | status | { error_code: number, reason: string }|
97
- * | stats | [{key: string, value: string}] |
98
- * | data | { row_count: 0 } transformed from **stats** |
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** |
99
102
  *
100
103
  *
101
104
  * #### Example
102
105
  *
103
106
  * ```
104
- * new milvusClient(MILUVS_ADDRESS).partitionManager.getPartitionStatistics({
107
+ * new milvusClient(MILUVS_ADDRESS).getPartitionStatistics({
105
108
  * collection_name: 'my_collection',
106
109
  * partition_name: "_default",
107
110
  * });
@@ -109,25 +112,27 @@ export declare class Partition extends Client {
109
112
  */
110
113
  getPartitionStatistics(data: GetPartitionStatisticsReq): Promise<StatisticsResponse>;
111
114
  /**
112
- * Load a partition into cache.
115
+ * Load multiple partitions into query nodes.
113
116
  *
114
117
  * @param data
115
- * | Property | Type | Description |
116
- * | :----------------- | :---- | :------------------------------- |
117
- * | collection_name | String | Collection name |
118
- * | partition_names | String[] | Array of partition names |
119
- * | 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 |
120
- *
121
- * @return
122
- * | Property | Description |
123
- * | :-------------| :-------- |
124
- * | error_code | Error code number |
125
- * | reason | Error cause | *
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 |
125
+ *
126
+ * @returns
127
+ * | Property | Description |
128
+ * | :-- | :-- |
129
+ * | error_code | Error code number |
130
+ * | reason | Error cause |
126
131
  *
127
132
  * #### Example
128
133
  *
129
134
  * ```
130
- * new milvusClient(MILUVS_ADDRESS).partitionManager.loadPartitions({
135
+ * new milvusClient(MILUVS_ADDRESS).loadPartitions({
131
136
  * collection_name: 'my_collection',
132
137
  * partition_names: ['my_partition'],
133
138
  * });
@@ -138,22 +143,23 @@ export declare class Partition extends Client {
138
143
  * Release a partition from cache.
139
144
  *
140
145
  * @param data
141
- * | Property | Type | Description |
142
- * | :----------------- | :---- | :------------------------------- |
143
- * | collection_name | String | Collection name |
144
- * | partition_names | String[] | Array of partition names |
145
- * | 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 |
146
- *
147
- * @return
148
- * | Property | Description |
149
- * | :-------------| :-------- |
150
- * | error_code | Error code number |
151
- * | reason | Error cause | *
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
+
152
+ *
153
+ * @returns
154
+ * | Property | Description |
155
+ * | :-- | :-- |
156
+ * | error_code | Error code number |
157
+ * | reason | Error cause |
152
158
  *
153
159
  * #### Example
154
160
  *
155
161
  * ```
156
- * new milvusClient(MILUVS_ADDRESS).partitionManager.releasePartitions({
162
+ * new milvusClient(MILUVS_ADDRESS).releasePartitions({
157
163
  * collection_name: 'my_collection',
158
164
  * partition_names: ['my_partition'],
159
165
  * });
@@ -170,22 +176,23 @@ export declare class Partition extends Client {
170
176
  * To drop a partition will drop all data in this partition and the `_default` partition cannot be dropped.
171
177
  *
172
178
  * @param data
173
- * | Property | Type | Description |
174
- * | :----------------- | :---- | :------------------------------- |
175
- * | collection_name | String | Collection name |
176
- * | partition_name | String | Partition name |
177
- * | 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 |
178
- *
179
- * @return
180
- * | Property | Description |
181
- * | :-------------| :-------- |
182
- * | error_code | Error code number |
183
- * | reason | Error cause | *
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
+
185
+ *
186
+ * @returns
187
+ * | Property | Description |
188
+ * | :-- | :-- |
189
+ * | error_code | Error code number |
190
+ * | reason | Error cause |
184
191
  *
185
192
  * #### Example
186
193
  *
187
194
  * ```
188
- * new milvusClient(MILUVS_ADDRESS).partitionManager.dropPartition({
195
+ * new milvusClient(MILUVS_ADDRESS).dropPartition({
189
196
  * collection_name: 'my_collection',
190
197
  * partition_name: 'my_partition',
191
198
  * });