@zilliz/milvus2-sdk-node 2.2.4 → 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.
- package/README.md +4 -21
- package/dist/milvus/BaseClient.d.ts +17 -0
- package/dist/milvus/BaseClient.js +58 -0
- package/dist/milvus/BaseClient.js.map +1 -0
- package/dist/milvus/Collection.d.ts +63 -65
- package/dist/milvus/Collection.js +111 -123
- package/dist/milvus/Collection.js.map +1 -1
- package/dist/milvus/Data.d.ts +14 -18
- package/dist/milvus/Data.js +82 -94
- package/dist/milvus/Data.js.map +1 -1
- package/dist/milvus/MilvusClient.d.ts +17 -0
- package/dist/milvus/MilvusClient.js +163 -0
- package/dist/milvus/MilvusClient.js.map +1 -0
- package/dist/milvus/MilvusIndex.d.ts +8 -8
- package/dist/milvus/MilvusIndex.js +19 -20
- package/dist/milvus/MilvusIndex.js.map +1 -1
- package/dist/milvus/Partition.d.ts +10 -10
- package/dist/milvus/Partition.js +27 -29
- package/dist/milvus/Partition.js.map +1 -1
- package/dist/milvus/Resource.d.ts +10 -11
- package/dist/milvus/Resource.js +18 -18
- package/dist/milvus/Resource.js.map +1 -1
- package/dist/milvus/User.d.ts +20 -20
- package/dist/milvus/User.js +45 -47
- package/dist/milvus/User.js.map +1 -1
- package/dist/milvus/Utils.d.ts +1 -1
- package/dist/milvus/Utils.js +1 -1
- package/dist/milvus/Utils.js.map +1 -1
- package/dist/milvus/index.d.ts +11 -48
- package/dist/milvus/index.js +16 -188
- package/dist/milvus/index.js.map +1 -1
- package/dist/milvus/types/Common.d.ts +1 -1
- package/dist/milvus/types/User.d.ts +3 -3
- package/dist/proto/proto/common.proto +7 -1
- package/dist/proto/proto/feder.proto +40 -0
- package/dist/proto/proto/google/protobuf/descriptor.proto +31 -1
- package/dist/proto/proto/milvus.proto +61 -0
- package/dist/proto/proto/schema.proto +18 -23
- package/dist/sdk.json +1 -1
- package/dist/utils/Blob.js.map +1 -0
- package/dist/{milvus/utils → utils}/Format.d.ts +2 -1
- package/dist/{milvus/utils → utils}/Format.js +8 -7
- package/dist/utils/Format.js.map +1 -0
- package/dist/utils/Function.d.ts +4 -0
- package/dist/utils/Function.js +33 -0
- package/dist/utils/Function.js.map +1 -0
- package/dist/utils/Grpc.d.ts +19 -0
- package/dist/utils/Grpc.js +64 -0
- package/dist/utils/Grpc.js.map +1 -0
- package/dist/{milvus/utils → utils}/Validate.d.ts +1 -1
- package/dist/{milvus/utils → utils}/Validate.js +2 -2
- package/dist/utils/Validate.js.map +1 -0
- package/dist/utils/index.d.ts +5 -1
- package/dist/utils/index.js +19 -24
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/test.d.ts +14 -0
- package/dist/utils/test.js +68 -0
- package/dist/utils/test.js.map +1 -0
- package/package.json +4 -4
- package/dist/milvus/Client.d.ts +0 -4
- package/dist/milvus/Client.js +0 -11
- package/dist/milvus/Client.js.map +0 -1
- package/dist/milvus/utils/Blob.js.map +0 -1
- package/dist/milvus/utils/Format.js.map +0 -1
- package/dist/milvus/utils/Validate.js.map +0 -1
- package/dist/milvus/utils/index.d.ts +0 -3
- package/dist/milvus/utils/index.js +0 -10
- package/dist/milvus/utils/index.js.map +0 -1
- /package/dist/{milvus/utils → utils}/Blob.d.ts +0 -0
- /package/dist/{milvus/utils → utils}/Blob.js +0 -0
|
@@ -61,30 +61,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
61
61
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
65
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
66
|
-
};
|
|
67
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
68
65
|
exports.Collection = void 0;
|
|
69
|
-
var protobufjs_1 = __importDefault(require("protobufjs"));
|
|
70
|
-
var path_1 = __importDefault(require("path"));
|
|
71
66
|
var utils_1 = require("../utils");
|
|
72
|
-
var
|
|
73
|
-
var
|
|
74
|
-
var Format_1 = require("./utils/Format");
|
|
75
|
-
var Client_1 = require("./Client");
|
|
76
|
-
var Milvus_1 = require("./const/Milvus");
|
|
77
|
-
var types_1 = require("./types");
|
|
78
|
-
var schemaPath = path_1.default.resolve(__dirname, '../proto/proto/schema.proto');
|
|
67
|
+
var BaseClient_1 = require("./BaseClient");
|
|
68
|
+
var _1 = require(".");
|
|
79
69
|
/**
|
|
80
70
|
* @see [collection operation examples](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/Collection.ts)
|
|
81
71
|
*/
|
|
82
72
|
var Collection = /** @class */ (function (_super) {
|
|
83
73
|
__extends(Collection, _super);
|
|
84
|
-
function Collection(
|
|
85
|
-
|
|
86
|
-
_this._protoRoot = protobufjs_1.default.loadSync(schemaPath);
|
|
87
|
-
return _this;
|
|
74
|
+
function Collection() {
|
|
75
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
88
76
|
}
|
|
89
77
|
/**
|
|
90
78
|
* Create a collection in Milvus.
|
|
@@ -107,7 +95,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
107
95
|
* #### Example
|
|
108
96
|
*
|
|
109
97
|
* ```
|
|
110
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
98
|
+
* new milvusClient(MILUVS_ADDRESS).createCollection({
|
|
111
99
|
* collection_name: 'my_collection',
|
|
112
100
|
* fields: [
|
|
113
101
|
* {
|
|
@@ -137,27 +125,27 @@ var Collection = /** @class */ (function (_super) {
|
|
|
137
125
|
case 0:
|
|
138
126
|
_a = data || {}, fields = _a.fields, collection_name = _a.collection_name, description = _a.description, _b = _a.consistency_level, consistency_level = _b === void 0 ? 'Bounded' : _b;
|
|
139
127
|
if (!fields || !fields.length || !collection_name) {
|
|
140
|
-
throw new Error(
|
|
128
|
+
throw new Error(_1.ERROR_REASONS.CREATE_COLLECTION_CHECK_PARAMS);
|
|
141
129
|
}
|
|
142
|
-
(0,
|
|
143
|
-
CollectionSchema = this.
|
|
144
|
-
FieldSchema = this.
|
|
130
|
+
(0, utils_1.checkCollectionFields)(fields);
|
|
131
|
+
CollectionSchema = this.schemaProto.lookupType('milvus.proto.schema.CollectionSchema');
|
|
132
|
+
FieldSchema = this.schemaProto.lookupType('milvus.proto.schema.FieldSchema');
|
|
145
133
|
payload = {
|
|
146
134
|
name: collection_name,
|
|
147
135
|
description: description || '',
|
|
148
136
|
fields: [],
|
|
149
137
|
};
|
|
150
138
|
data.fields.forEach(function (field) {
|
|
151
|
-
var value = __assign(__assign({}, field), { typeParams: (0,
|
|
139
|
+
var value = __assign(__assign({}, field), { typeParams: (0, utils_1.parseToKeyValue)(field.type_params), dataType: field.data_type, isPrimaryKey: field.is_primary_key });
|
|
152
140
|
var fieldParams = FieldSchema.create(value);
|
|
153
141
|
payload.fields.push(fieldParams);
|
|
154
142
|
});
|
|
155
143
|
collectionParams = CollectionSchema.create(payload);
|
|
156
144
|
schemaBtyes = CollectionSchema.encode(collectionParams).finish();
|
|
157
|
-
level = Object.keys(
|
|
158
|
-
?
|
|
159
|
-
:
|
|
160
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
145
|
+
level = Object.keys(_1.ConsistencyLevelEnum).includes(consistency_level)
|
|
146
|
+
? _1.ConsistencyLevelEnum[consistency_level]
|
|
147
|
+
: _1.ConsistencyLevelEnum['Bounded'];
|
|
148
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'CreateCollection', __assign(__assign({}, data), { schema: schemaBtyes, consistency_level: level }), data.timeout)];
|
|
161
149
|
case 1:
|
|
162
150
|
promise = _c.sent();
|
|
163
151
|
return [2 /*return*/, promise];
|
|
@@ -166,37 +154,37 @@ var Collection = /** @class */ (function (_super) {
|
|
|
166
154
|
});
|
|
167
155
|
};
|
|
168
156
|
/**
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
157
|
+
* Check if a collection exists.
|
|
158
|
+
*
|
|
159
|
+
* @param data
|
|
160
|
+
* | Property | Type | Description |
|
|
161
|
+
* | :-- | :-- | :-- |
|
|
162
|
+
* | collection_name | String | Collection name |
|
|
163
|
+
* | 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 |
|
|
164
|
+
*
|
|
165
|
+
* @returns
|
|
166
|
+
* | Property | Description |
|
|
167
|
+
* | :-- | :-- |
|
|
168
|
+
* | status | { error_code: number, reason: string } |
|
|
169
|
+
* | value | `true` or `false` |
|
|
170
|
+
|
|
171
|
+
*
|
|
172
|
+
* #### Example
|
|
173
|
+
*
|
|
174
|
+
* ```
|
|
175
|
+
* new milvusClient(MILUVS_ADDRESS).hasCollection({
|
|
176
|
+
* collection_name: 'my_collection',
|
|
177
|
+
* });
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
192
180
|
Collection.prototype.hasCollection = function (data) {
|
|
193
181
|
return __awaiter(this, void 0, void 0, function () {
|
|
194
182
|
var promise;
|
|
195
183
|
return __generator(this, function (_a) {
|
|
196
184
|
switch (_a.label) {
|
|
197
185
|
case 0:
|
|
198
|
-
(0,
|
|
199
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
186
|
+
(0, utils_1.checkCollectionName)(data);
|
|
187
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'HasCollection', data, data.timeout)];
|
|
200
188
|
case 1:
|
|
201
189
|
promise = _a.sent();
|
|
202
190
|
return [2 /*return*/, promise];
|
|
@@ -205,36 +193,36 @@ var Collection = /** @class */ (function (_super) {
|
|
|
205
193
|
});
|
|
206
194
|
};
|
|
207
195
|
/**
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
196
|
+
* List all collections or get collection loading status.
|
|
197
|
+
*
|
|
198
|
+
* @param data
|
|
199
|
+
* | Property | Type | Description |
|
|
200
|
+
* | :-- | :-- | :-- |
|
|
201
|
+
* | type(optional) | enum | All -> 0, Loaded -> 1 |
|
|
202
|
+
* | collection_names(optional) | String[] | If `type = Loaded`, Milvus will return `collection_names inMemory_percentages` |
|
|
203
|
+
* | 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 |
|
|
216
204
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
205
|
+
*
|
|
206
|
+
* @returns
|
|
207
|
+
* | Property | Description |
|
|
208
|
+
* | :-- | :-- |
|
|
209
|
+
* | status | { error_code: number, reason: string } |
|
|
210
|
+
* | data | Contains collection name, ID , timestamp (UTC created time), and loadedPercentage (100 means loaded) |
|
|
211
|
+
*
|
|
212
|
+
*
|
|
213
|
+
* #### Example
|
|
214
|
+
*
|
|
215
|
+
* ```
|
|
216
|
+
* new milvusClient(MILUVS_ADDRESS).showCollections();
|
|
217
|
+
* ```
|
|
218
|
+
*/
|
|
231
219
|
Collection.prototype.showCollections = function (data) {
|
|
232
220
|
return __awaiter(this, void 0, void 0, function () {
|
|
233
221
|
var promise, result;
|
|
234
222
|
return __generator(this, function (_a) {
|
|
235
223
|
switch (_a.label) {
|
|
236
|
-
case 0: return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
237
|
-
type: data ? data.type :
|
|
224
|
+
case 0: return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'ShowCollections', {
|
|
225
|
+
type: data ? data.type : _1.ShowCollectionsType.All,
|
|
238
226
|
collection_names: (data === null || data === void 0 ? void 0 : data.collection_names) || [],
|
|
239
227
|
}, data === null || data === void 0 ? void 0 : data.timeout)];
|
|
240
228
|
case 1:
|
|
@@ -274,7 +262,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
274
262
|
* #### Example
|
|
275
263
|
*
|
|
276
264
|
* ```
|
|
277
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
265
|
+
* new milvusClient(MILUVS_ADDRESS).describeCollection({
|
|
278
266
|
* collection_name: 'my_collection',
|
|
279
267
|
* });
|
|
280
268
|
* ```
|
|
@@ -285,8 +273,8 @@ var Collection = /** @class */ (function (_super) {
|
|
|
285
273
|
return __generator(this, function (_a) {
|
|
286
274
|
switch (_a.label) {
|
|
287
275
|
case 0:
|
|
288
|
-
(0,
|
|
289
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
276
|
+
(0, utils_1.checkCollectionName)(data);
|
|
277
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'DescribeCollection', data, data.timeout)];
|
|
290
278
|
case 1:
|
|
291
279
|
promise = _a.sent();
|
|
292
280
|
return [2 /*return*/, promise];
|
|
@@ -314,7 +302,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
314
302
|
* #### Example
|
|
315
303
|
*
|
|
316
304
|
* ```
|
|
317
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
305
|
+
* new milvusClient(MILUVS_ADDRESS).getCollectionStatistics({
|
|
318
306
|
* collection_name: 'my_collection',
|
|
319
307
|
* });
|
|
320
308
|
* ```
|
|
@@ -325,11 +313,11 @@ var Collection = /** @class */ (function (_super) {
|
|
|
325
313
|
return __generator(this, function (_a) {
|
|
326
314
|
switch (_a.label) {
|
|
327
315
|
case 0:
|
|
328
|
-
(0,
|
|
329
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
316
|
+
(0, utils_1.checkCollectionName)(data);
|
|
317
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'GetCollectionStatistics', data, data.timeout)];
|
|
330
318
|
case 1:
|
|
331
319
|
promise = _a.sent();
|
|
332
|
-
promise.data = (0,
|
|
320
|
+
promise.data = (0, utils_1.formatKeyValueData)(promise.stats, ['row_count']);
|
|
333
321
|
return [2 /*return*/, promise];
|
|
334
322
|
}
|
|
335
323
|
});
|
|
@@ -356,7 +344,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
356
344
|
* #### Example
|
|
357
345
|
*
|
|
358
346
|
* ```
|
|
359
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
347
|
+
* new milvusClient(MILUVS_ADDRESS).loadCollection({
|
|
360
348
|
* collection_name: 'my_collection',
|
|
361
349
|
* });
|
|
362
350
|
* ```
|
|
@@ -367,8 +355,8 @@ var Collection = /** @class */ (function (_super) {
|
|
|
367
355
|
return __generator(this, function (_a) {
|
|
368
356
|
switch (_a.label) {
|
|
369
357
|
case 0:
|
|
370
|
-
(0,
|
|
371
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
358
|
+
(0, utils_1.checkCollectionName)(data);
|
|
359
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'LoadCollection', data, data.timeout)];
|
|
372
360
|
case 1:
|
|
373
361
|
promise = _a.sent();
|
|
374
362
|
return [2 /*return*/, promise];
|
|
@@ -397,7 +385,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
397
385
|
* #### Example
|
|
398
386
|
*
|
|
399
387
|
* ```
|
|
400
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
388
|
+
* new milvusClient(MILUVS_ADDRESS).loadCollectionSync({
|
|
401
389
|
* collection_name: 'my_collection',
|
|
402
390
|
* });
|
|
403
391
|
* ```
|
|
@@ -408,11 +396,11 @@ var Collection = /** @class */ (function (_super) {
|
|
|
408
396
|
return __generator(this, function (_a) {
|
|
409
397
|
switch (_a.label) {
|
|
410
398
|
case 0:
|
|
411
|
-
(0,
|
|
412
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
399
|
+
(0, utils_1.checkCollectionName)(data);
|
|
400
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'LoadCollection', data, data.timeout)];
|
|
413
401
|
case 1:
|
|
414
402
|
promise = _a.sent();
|
|
415
|
-
if (promise.error_code !==
|
|
403
|
+
if (promise.error_code !== _1.ErrorCode.SUCCESS) {
|
|
416
404
|
throw new Error("ErrorCode: ".concat(promise.error_code, ". Reason: ").concat(promise.reason));
|
|
417
405
|
}
|
|
418
406
|
loadedPercentage = 0;
|
|
@@ -421,11 +409,11 @@ var Collection = /** @class */ (function (_super) {
|
|
|
421
409
|
if (!(Number(loadedPercentage) < 100)) return [3 /*break*/, 4];
|
|
422
410
|
return [4 /*yield*/, this.showCollections({
|
|
423
411
|
collection_names: [data.collection_name],
|
|
424
|
-
type:
|
|
412
|
+
type: _1.ShowCollectionsType.Loaded,
|
|
425
413
|
})];
|
|
426
414
|
case 3:
|
|
427
415
|
res = _a.sent();
|
|
428
|
-
if (res.status.error_code !==
|
|
416
|
+
if (res.status.error_code !== _1.ErrorCode.SUCCESS) {
|
|
429
417
|
throw new Error("ErrorCode: ".concat(res.status.error_code, ". Reason: ").concat(res.status.reason));
|
|
430
418
|
}
|
|
431
419
|
// Because we pass collection_names in showCollections, so it will only this collection in result.
|
|
@@ -455,7 +443,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
455
443
|
* #### Example
|
|
456
444
|
*
|
|
457
445
|
* ```
|
|
458
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
446
|
+
* new milvusClient(MILUVS_ADDRESS).releaseCollection({
|
|
459
447
|
* collection_name: 'my_collection',
|
|
460
448
|
* });
|
|
461
449
|
* ```
|
|
@@ -466,8 +454,8 @@ var Collection = /** @class */ (function (_super) {
|
|
|
466
454
|
return __generator(this, function (_a) {
|
|
467
455
|
switch (_a.label) {
|
|
468
456
|
case 0:
|
|
469
|
-
(0,
|
|
470
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
457
|
+
(0, utils_1.checkCollectionName)(data);
|
|
458
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'ReleaseCollection', data, data.timeout)];
|
|
471
459
|
case 1:
|
|
472
460
|
promise = _a.sent();
|
|
473
461
|
return [2 /*return*/, promise];
|
|
@@ -494,7 +482,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
494
482
|
* #### Example
|
|
495
483
|
*
|
|
496
484
|
* ```
|
|
497
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
485
|
+
* new milvusClient(MILUVS_ADDRESS).renameCollection({
|
|
498
486
|
* collection_name: 'my_collection',
|
|
499
487
|
* new_collection_name: 'my_new_collection'
|
|
500
488
|
* });
|
|
@@ -505,7 +493,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
505
493
|
var promise;
|
|
506
494
|
return __generator(this, function (_a) {
|
|
507
495
|
switch (_a.label) {
|
|
508
|
-
case 0: return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
496
|
+
case 0: return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'RenameCollection', {
|
|
509
497
|
oldName: data.collection_name,
|
|
510
498
|
newName: data.new_collection_name,
|
|
511
499
|
}, data.timeout)];
|
|
@@ -534,7 +522,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
534
522
|
* #### Example
|
|
535
523
|
*
|
|
536
524
|
* ```
|
|
537
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
525
|
+
* new milvusClient(MILUVS_ADDRESS).dropCollection({
|
|
538
526
|
* collection_name: 'my_collection',
|
|
539
527
|
* });
|
|
540
528
|
* ```
|
|
@@ -545,8 +533,8 @@ var Collection = /** @class */ (function (_super) {
|
|
|
545
533
|
return __generator(this, function (_a) {
|
|
546
534
|
switch (_a.label) {
|
|
547
535
|
case 0:
|
|
548
|
-
(0,
|
|
549
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
536
|
+
(0, utils_1.checkCollectionName)(data);
|
|
537
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'DropCollection', data, data.timeout)];
|
|
550
538
|
case 1:
|
|
551
539
|
promise = _a.sent();
|
|
552
540
|
return [2 /*return*/, promise];
|
|
@@ -574,7 +562,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
574
562
|
* #### Example
|
|
575
563
|
*
|
|
576
564
|
* ```
|
|
577
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
565
|
+
* new milvusClient(MILUVS_ADDRESS).createAlias({
|
|
578
566
|
* alias: 'my_collection_alis',
|
|
579
567
|
* collection_name: 'my_collection',
|
|
580
568
|
* });
|
|
@@ -586,11 +574,11 @@ var Collection = /** @class */ (function (_super) {
|
|
|
586
574
|
return __generator(this, function (_a) {
|
|
587
575
|
switch (_a.label) {
|
|
588
576
|
case 0:
|
|
589
|
-
(0,
|
|
577
|
+
(0, utils_1.checkCollectionName)(data);
|
|
590
578
|
if (!data.alias) {
|
|
591
|
-
throw new Error(
|
|
579
|
+
throw new Error(_1.ERROR_REASONS.ALIAS_NAME_IS_REQUIRED);
|
|
592
580
|
}
|
|
593
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
581
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'CreateAlias', data, data.timeout)];
|
|
594
582
|
case 1:
|
|
595
583
|
promise = _a.sent();
|
|
596
584
|
return [2 /*return*/, promise];
|
|
@@ -618,7 +606,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
618
606
|
* #### Example
|
|
619
607
|
*
|
|
620
608
|
* ```
|
|
621
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
609
|
+
* new milvusClient(MILUVS_ADDRESS).dropAlias({
|
|
622
610
|
* alias: 'my_collection_alis',
|
|
623
611
|
* collection_name: 'my_collection',
|
|
624
612
|
* });
|
|
@@ -631,9 +619,9 @@ var Collection = /** @class */ (function (_super) {
|
|
|
631
619
|
switch (_a.label) {
|
|
632
620
|
case 0:
|
|
633
621
|
if (!data.alias) {
|
|
634
|
-
throw new Error(
|
|
622
|
+
throw new Error(_1.ERROR_REASONS.ALIAS_NAME_IS_REQUIRED);
|
|
635
623
|
}
|
|
636
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
624
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'DropAlias', data, data.timeout)];
|
|
637
625
|
case 1:
|
|
638
626
|
promise = _a.sent();
|
|
639
627
|
return [2 /*return*/, promise];
|
|
@@ -661,7 +649,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
661
649
|
* #### Example
|
|
662
650
|
*
|
|
663
651
|
* ```
|
|
664
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
652
|
+
* new milvusClient(MILUVS_ADDRESS).alterAlais({
|
|
665
653
|
* alias: 'my_collection_alis',
|
|
666
654
|
* collection_name: 'my_collection',
|
|
667
655
|
* });
|
|
@@ -673,11 +661,11 @@ var Collection = /** @class */ (function (_super) {
|
|
|
673
661
|
return __generator(this, function (_a) {
|
|
674
662
|
switch (_a.label) {
|
|
675
663
|
case 0:
|
|
676
|
-
(0,
|
|
664
|
+
(0, utils_1.checkCollectionName)(data);
|
|
677
665
|
if (!data.alias) {
|
|
678
|
-
throw new Error(
|
|
666
|
+
throw new Error(_1.ERROR_REASONS.ALIAS_NAME_IS_REQUIRED);
|
|
679
667
|
}
|
|
680
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
668
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'AlterAlias', data, data.timeout)];
|
|
681
669
|
case 1:
|
|
682
670
|
promise = _a.sent();
|
|
683
671
|
return [2 /*return*/, promise];
|
|
@@ -703,7 +691,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
703
691
|
* #### Example
|
|
704
692
|
*
|
|
705
693
|
* ```
|
|
706
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
694
|
+
* new milvusClient(MILUVS_ADDRESS).compact({
|
|
707
695
|
* collection_name: 'my_collection',
|
|
708
696
|
* });
|
|
709
697
|
* ```
|
|
@@ -714,11 +702,11 @@ var Collection = /** @class */ (function (_super) {
|
|
|
714
702
|
return __generator(this, function (_a) {
|
|
715
703
|
switch (_a.label) {
|
|
716
704
|
case 0:
|
|
717
|
-
(0,
|
|
705
|
+
(0, utils_1.checkCollectionName)(data);
|
|
718
706
|
return [4 /*yield*/, this.describeCollection(data)];
|
|
719
707
|
case 1:
|
|
720
708
|
collectionInfo = _a.sent();
|
|
721
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
709
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'ManualCompaction', {
|
|
722
710
|
collectionID: collectionInfo.collectionID,
|
|
723
711
|
}, data.timeout)];
|
|
724
712
|
case 2:
|
|
@@ -746,7 +734,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
746
734
|
* #### Example
|
|
747
735
|
*
|
|
748
736
|
* ```
|
|
749
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
737
|
+
* new milvusClient(MILUVS_ADDRESS).getCompactionState({
|
|
750
738
|
* compactionID: compactionID,
|
|
751
739
|
* });
|
|
752
740
|
* ```
|
|
@@ -758,9 +746,9 @@ var Collection = /** @class */ (function (_super) {
|
|
|
758
746
|
switch (_a.label) {
|
|
759
747
|
case 0:
|
|
760
748
|
if (!data || !data.compactionID) {
|
|
761
|
-
throw new Error(
|
|
749
|
+
throw new Error(_1.ERROR_REASONS.COMPACTIONID_IS_REQUIRED);
|
|
762
750
|
}
|
|
763
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
751
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'GetCompactionState', data, data.timeout)];
|
|
764
752
|
case 1:
|
|
765
753
|
res = _a.sent();
|
|
766
754
|
return [2 /*return*/, res];
|
|
@@ -786,7 +774,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
786
774
|
* #### Example
|
|
787
775
|
*
|
|
788
776
|
* ```
|
|
789
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
777
|
+
* new milvusClient(MILUVS_ADDRESS).getCompactionStateWithPlans({
|
|
790
778
|
* compactionID: compactionID,
|
|
791
779
|
* });
|
|
792
780
|
* ```
|
|
@@ -798,9 +786,9 @@ var Collection = /** @class */ (function (_super) {
|
|
|
798
786
|
switch (_a.label) {
|
|
799
787
|
case 0:
|
|
800
788
|
if (!data || !data.compactionID) {
|
|
801
|
-
throw new Error(
|
|
789
|
+
throw new Error(_1.ERROR_REASONS.COMPACTIONID_IS_REQUIRED);
|
|
802
790
|
}
|
|
803
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
791
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'GetCompactionStateWithPlans', data, data.timeout)];
|
|
804
792
|
case 1:
|
|
805
793
|
res = _a.sent();
|
|
806
794
|
return [2 /*return*/, res];
|
|
@@ -826,7 +814,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
826
814
|
* #### Example
|
|
827
815
|
*
|
|
828
816
|
* ```
|
|
829
|
-
* new milvusClient(MILUVS_ADDRESS).
|
|
817
|
+
* new milvusClient(MILUVS_ADDRESS).getReplicas({
|
|
830
818
|
* collectionID: collectionID,
|
|
831
819
|
* });
|
|
832
820
|
*
|
|
@@ -855,9 +843,9 @@ var Collection = /** @class */ (function (_super) {
|
|
|
855
843
|
switch (_a.label) {
|
|
856
844
|
case 0:
|
|
857
845
|
if (!data || !data.collectionID) {
|
|
858
|
-
throw new Error(
|
|
846
|
+
throw new Error(_1.ERROR_REASONS.COLLECTION_ID_IS_REQUIRED);
|
|
859
847
|
}
|
|
860
|
-
return [4 /*yield*/, (0, utils_1.promisify)(this.
|
|
848
|
+
return [4 /*yield*/, (0, utils_1.promisify)(this.grpcClient, 'GetReplicas', data, data.timeout)];
|
|
861
849
|
case 1:
|
|
862
850
|
res = _a.sent();
|
|
863
851
|
return [2 /*return*/, res];
|
|
@@ -866,6 +854,6 @@ var Collection = /** @class */ (function (_super) {
|
|
|
866
854
|
});
|
|
867
855
|
};
|
|
868
856
|
return Collection;
|
|
869
|
-
}(
|
|
857
|
+
}(BaseClient_1.BaseClient));
|
|
870
858
|
exports.Collection = Collection;
|
|
871
859
|
//# sourceMappingURL=Collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Collection.js","sourceRoot":"","sources":["../../milvus/Collection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Collection.js","sourceRoot":"","sources":["../../milvus/Collection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAMkB;AAClB,2CAA0C;AAC1C,sBA+BW;AAEX;;GAEG;AACH;IAAgC,8BAAU;IAA1C;;IAwvBA,CAAC;IAvvBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;IACG,qCAAgB,GAAtB,UAAuB,IAAyB;;;;;;wBACxC,KAKF,IAAI,IAAI,EAAE,EAJZ,MAAM,YAAA,EACN,eAAe,qBAAA,EACf,WAAW,iBAAA,EACX,yBAA6B,EAA7B,iBAAiB,mBAAG,SAAS,KAAA,CAChB;wBACf,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,eAAe,EAAE;4BACjD,MAAM,IAAI,KAAK,CAAC,gBAAa,CAAC,8BAA8B,CAAC,CAAC;yBAC/D;wBACD,IAAA,6BAAqB,EAAC,MAAM,CAAC,CAAC;wBAGxB,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,CAClD,sCAAsC,CACvC,CAAC;wBAEI,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,CAC7C,iCAAiC,CAClC,CAAC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