@zilliz/milvus2-sdk-node 2.1.2 → 2.1.3
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/dist/milvus/Collection.d.ts +23 -11
- package/dist/milvus/Collection.js +47 -32
- package/dist/milvus/Collection.js.map +1 -1
- package/dist/milvus/Data.d.ts +10 -5
- package/dist/milvus/Data.js +21 -16
- package/dist/milvus/Data.js.map +1 -1
- package/dist/milvus/MilvusIndex.d.ts +5 -1
- package/dist/milvus/MilvusIndex.js +10 -8
- package/dist/milvus/MilvusIndex.js.map +1 -1
- package/dist/milvus/Partition.d.ts +10 -6
- package/dist/milvus/Partition.js +15 -11
- package/dist/milvus/Partition.js.map +1 -1
- package/dist/milvus/User.d.ts +3 -3
- package/dist/milvus/User.js +4 -4
- package/dist/milvus/User.js.map +1 -1
- package/dist/milvus/index.js +1 -1
- package/dist/milvus/index.js.map +1 -1
- package/dist/milvus/types/Collection.d.ts +8 -8
- package/dist/milvus/types/Common.d.ts +3 -0
- package/dist/milvus/types/Data.d.ts +8 -8
- package/dist/milvus/types/Index.d.ts +7 -6
- package/dist/milvus/types/Partition.d.ts +5 -4
- package/dist/milvus/types/Search.d.ts +10 -10
- package/dist/milvus/types/User.d.ts +6 -3
- package/dist/proto/proto/common.proto +35 -12
- package/dist/proto/proto/google/protobuf/descriptor.proto +17 -5
- package/dist/proto/proto/milvus.proto +231 -68
- package/dist/sdk.json +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +3 -2
- package/dist/utils/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CreateCollectionReq, DescribeCollectionReq, DropCollectionReq, GetCollectionStatisticsReq, LoadCollectionReq, ReleaseLoadCollectionReq, ShowCollectionsReq, HasCollectionReq, CreateAliasReq, DropAliasReq, AlterAliasReq, CompactReq, GetCompactionStateReq, GetCompactionPlansReq } from
|
|
2
|
-
import { BoolResponse, CompactionResponse, DescribeCollectionResponse, GetCompactionPlansResponse, GetCompactionStateResponse, ResStatus, ShowCollectionsResponse, StatisticsResponse } from
|
|
3
|
-
import { Client } from
|
|
1
|
+
import { CreateCollectionReq, DescribeCollectionReq, DropCollectionReq, GetCollectionStatisticsReq, LoadCollectionReq, ReleaseLoadCollectionReq, ShowCollectionsReq, HasCollectionReq, CreateAliasReq, DropAliasReq, AlterAliasReq, CompactReq, GetCompactionStateReq, GetCompactionPlansReq } from './types/Collection';
|
|
2
|
+
import { BoolResponse, CompactionResponse, DescribeCollectionResponse, GetCompactionPlansResponse, GetCompactionStateResponse, ResStatus, ShowCollectionsResponse, StatisticsResponse } from './types/Response';
|
|
3
|
+
import { Client } from './Client';
|
|
4
4
|
/**
|
|
5
5
|
* See all [collection operation examples](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/Collection.ts).
|
|
6
6
|
*/
|
|
@@ -13,8 +13,9 @@ export declare class Collection extends Client {
|
|
|
13
13
|
* | :---------------------- | :---- | :------------------------------- |
|
|
14
14
|
* | collection_name | String | Collection name |
|
|
15
15
|
* | description | String | Collection description |
|
|
16
|
-
* | consistency_level | String | "Strong" | "Session"
|
|
16
|
+
* | consistency_level | String | "Strong"(Milvus default) | "Session" | "Bounded"| "Eventually" | "Customized"; |
|
|
17
17
|
* | fields | <a href="https://github.com/milvus-io/milvus-sdk-node/blob/main/milvus/types/Collection.ts#L8" target="_blank">FieldType</a> | Field data |
|
|
18
|
+
* | 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 |
|
|
18
19
|
*
|
|
19
20
|
* @return
|
|
20
21
|
* | Property | Description |
|
|
@@ -55,12 +56,14 @@ export declare class Collection extends Client {
|
|
|
55
56
|
* | Property | Type | Description |
|
|
56
57
|
* | :---------------------- | :---- | :------------------------------- |
|
|
57
58
|
* | collection_name | String | Collection name |
|
|
59
|
+
* | 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
60
|
*
|
|
59
61
|
* @return
|
|
60
62
|
* | Property | Description |
|
|
61
63
|
* | :-------------| :------------------------------- |
|
|
62
64
|
* | status | { error_code: number, reason: string }|
|
|
63
65
|
* | value | `true` or `false` |
|
|
66
|
+
|
|
64
67
|
*
|
|
65
68
|
* #### Example
|
|
66
69
|
*
|
|
@@ -79,7 +82,7 @@ export declare class Collection extends Client {
|
|
|
79
82
|
* | :----------------- | :---- | :------------------------------- |
|
|
80
83
|
* | type(optional) | enum | All -> 0, Loaded -> 1 |
|
|
81
84
|
* | collection_names(optional) | String[] | If `type = Loaded`, Milvus will return `collection_names inMemory_percentages` |
|
|
82
|
-
*
|
|
85
|
+
* | 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 |
|
|
83
86
|
*
|
|
84
87
|
* @return
|
|
85
88
|
* | Property | Description |
|
|
@@ -101,7 +104,8 @@ export declare class Collection extends Client {
|
|
|
101
104
|
* @param data
|
|
102
105
|
* | Property | Type | Description |
|
|
103
106
|
* | :----------------- | :---- | :------------------------------- |
|
|
104
|
-
* | collection_name
|
|
107
|
+
* | collection_name | String | Collection name |
|
|
108
|
+
* | 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 |
|
|
105
109
|
*
|
|
106
110
|
* @return
|
|
107
111
|
* | Property | Description |
|
|
@@ -126,7 +130,8 @@ export declare class Collection extends Client {
|
|
|
126
130
|
* @param data
|
|
127
131
|
* | Property | Type | Description |
|
|
128
132
|
* | :----------------- | :---- | :------------------------------- |
|
|
129
|
-
* | collection_name
|
|
133
|
+
* | collection_name | String | Collection name |
|
|
134
|
+
* | 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 |
|
|
130
135
|
*
|
|
131
136
|
* @return
|
|
132
137
|
* | Property | Description |
|
|
@@ -152,7 +157,8 @@ export declare class Collection extends Client {
|
|
|
152
157
|
* @param data
|
|
153
158
|
* | Property | Type | Description |
|
|
154
159
|
* | :----------------- | :---- | :------------------------------- |
|
|
155
|
-
* | collection_name
|
|
160
|
+
* | collection_name | String | Collection name |
|
|
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 |
|
|
156
162
|
*
|
|
157
163
|
* @return
|
|
158
164
|
* | Property | Description |
|
|
@@ -176,7 +182,8 @@ export declare class Collection extends Client {
|
|
|
176
182
|
* @param data
|
|
177
183
|
* | Property | Type | Description |
|
|
178
184
|
* | :----------------- | :---- | :------------------------------- |
|
|
179
|
-
* | collection_name
|
|
185
|
+
* | collection_name | String | Collection name |
|
|
186
|
+
* | 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 |
|
|
180
187
|
*
|
|
181
188
|
* @return
|
|
182
189
|
* | Property | Description |
|
|
@@ -200,7 +207,8 @@ export declare class Collection extends Client {
|
|
|
200
207
|
* @param data
|
|
201
208
|
* | Property | Type | Description |
|
|
202
209
|
* | :----------------- | :---- | :------------------------------- |
|
|
203
|
-
* | collection_name
|
|
210
|
+
* | collection_name | String | Collection name |
|
|
211
|
+
* | 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 |
|
|
204
212
|
*
|
|
205
213
|
* @return
|
|
206
214
|
* | Property | Description |
|
|
@@ -224,6 +232,7 @@ export declare class Collection extends Client {
|
|
|
224
232
|
* | Property | Type | Description |
|
|
225
233
|
* | :----------------- | :---- | :------------------------------- |
|
|
226
234
|
* | collection_name | String | Collection name |
|
|
235
|
+
* | 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 |
|
|
227
236
|
*
|
|
228
237
|
* @return
|
|
229
238
|
* | Property | Description |
|
|
@@ -262,7 +271,8 @@ export declare class Collection extends Client {
|
|
|
262
271
|
* @param data
|
|
263
272
|
* | Property | Type | Description |
|
|
264
273
|
* | :----------------- | :---- | :------------------------------- |
|
|
265
|
-
* | collection_name
|
|
274
|
+
* | collection_name | String | The collection name to compact |
|
|
275
|
+
* | 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 |
|
|
266
276
|
*
|
|
267
277
|
* @return
|
|
268
278
|
* | Property | Description |
|
|
@@ -286,6 +296,7 @@ export declare class Collection extends Client {
|
|
|
286
296
|
* | Property | Type | Description |
|
|
287
297
|
* | :----------------- | :---- | :------------------------------- |
|
|
288
298
|
* | compactionID | number or string | the id returned by compact |
|
|
299
|
+
* | 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 |
|
|
289
300
|
*
|
|
290
301
|
* @return
|
|
291
302
|
* | Property | Description |
|
|
@@ -309,6 +320,7 @@ export declare class Collection extends Client {
|
|
|
309
320
|
* | Property | Type | Description |
|
|
310
321
|
* | :----------------- | :---- | :------------------------------- |
|
|
311
322
|
* | compactionID | number or string | the id returned by compact |
|
|
323
|
+
* | 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 |
|
|
312
324
|
*
|
|
313
325
|
* @return
|
|
314
326
|
* | Property | Description |
|
|
@@ -75,7 +75,7 @@ var Validate_1 = require("./utils/Validate");
|
|
|
75
75
|
var path_1 = __importDefault(require("path"));
|
|
76
76
|
var Format_1 = require("./utils/Format");
|
|
77
77
|
var Client_1 = require("./Client");
|
|
78
|
-
var schemaPath = path_1.default.resolve(__dirname,
|
|
78
|
+
var schemaPath = path_1.default.resolve(__dirname, '../proto/proto/schema.proto');
|
|
79
79
|
/**
|
|
80
80
|
* See all [collection operation examples](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/Collection.ts).
|
|
81
81
|
*/
|
|
@@ -92,8 +92,9 @@ var Collection = /** @class */ (function (_super) {
|
|
|
92
92
|
* | :---------------------- | :---- | :------------------------------- |
|
|
93
93
|
* | collection_name | String | Collection name |
|
|
94
94
|
* | description | String | Collection description |
|
|
95
|
-
* | consistency_level | String | "Strong" | "Session"
|
|
95
|
+
* | consistency_level | String | "Strong"(Milvus default) | "Session" | "Bounded"| "Eventually" | "Customized"; |
|
|
96
96
|
* | fields | <a href="https://github.com/milvus-io/milvus-sdk-node/blob/main/milvus/types/Collection.ts#L8" target="_blank">FieldType</a> | Field data |
|
|
97
|
+
* | 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 |
|
|
97
98
|
*
|
|
98
99
|
* @return
|
|
99
100
|
* | Property | Description |
|
|
@@ -128,11 +129,11 @@ var Collection = /** @class */ (function (_super) {
|
|
|
128
129
|
*/
|
|
129
130
|
Collection.prototype.createCollection = function (data) {
|
|
130
131
|
return __awaiter(this, void 0, void 0, function () {
|
|
131
|
-
var _a, fields, collection_name, description, _b, consistency_level, root, CollectionSchema, FieldSchema, payload, collectionParams, schemaBtyes, promise;
|
|
132
|
+
var _a, fields, collection_name, description, _b, consistency_level, root, CollectionSchema, FieldSchema, payload, collectionParams, schemaBtyes, level, promise;
|
|
132
133
|
return __generator(this, function (_c) {
|
|
133
134
|
switch (_c.label) {
|
|
134
135
|
case 0:
|
|
135
|
-
_a = data || {}, fields = _a.fields, collection_name = _a.collection_name, description = _a.description, _b = _a.consistency_level, consistency_level = _b === void 0 ?
|
|
136
|
+
_a = data || {}, fields = _a.fields, collection_name = _a.collection_name, description = _a.description, _b = _a.consistency_level, consistency_level = _b === void 0 ? 'Bounded' : _b;
|
|
136
137
|
if (!fields || !fields.length || !collection_name) {
|
|
137
138
|
throw new Error(ErrorReason_1.ERROR_REASONS.CREATE_COLLECTION_CHECK_PARAMS);
|
|
138
139
|
}
|
|
@@ -140,11 +141,11 @@ var Collection = /** @class */ (function (_super) {
|
|
|
140
141
|
return [4 /*yield*/, protobufjs_1.default.load(schemaPath)];
|
|
141
142
|
case 1:
|
|
142
143
|
root = _c.sent();
|
|
143
|
-
CollectionSchema = root.lookupType(
|
|
144
|
-
FieldSchema = root.lookupType(
|
|
144
|
+
CollectionSchema = root.lookupType('milvus.proto.schema.CollectionSchema');
|
|
145
|
+
FieldSchema = root.lookupType('milvus.proto.schema.FieldSchema');
|
|
145
146
|
payload = {
|
|
146
147
|
name: collection_name,
|
|
147
|
-
description: description ||
|
|
148
|
+
description: description || '',
|
|
148
149
|
fields: [],
|
|
149
150
|
};
|
|
150
151
|
data.fields.forEach(function (field) {
|
|
@@ -154,7 +155,10 @@ var Collection = /** @class */ (function (_super) {
|
|
|
154
155
|
});
|
|
155
156
|
collectionParams = CollectionSchema.create(payload);
|
|
156
157
|
schemaBtyes = CollectionSchema.encode(collectionParams).finish();
|
|
157
|
-
|
|
158
|
+
level = Object.keys(Collection_1.ConsistencyLevelEnum).includes(consistency_level)
|
|
159
|
+
? Collection_1.ConsistencyLevelEnum[consistency_level]
|
|
160
|
+
: Collection_1.ConsistencyLevelEnum['Bounded'];
|
|
161
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'CreateCollection', __assign(__assign({}, data), { schema: schemaBtyes, consistency_level: level }), data.timeout)];
|
|
158
162
|
case 2:
|
|
159
163
|
promise = _c.sent();
|
|
160
164
|
return [2 /*return*/, promise];
|
|
@@ -169,12 +173,14 @@ var Collection = /** @class */ (function (_super) {
|
|
|
169
173
|
* | Property | Type | Description |
|
|
170
174
|
* | :---------------------- | :---- | :------------------------------- |
|
|
171
175
|
* | collection_name | String | Collection name |
|
|
176
|
+
* | 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 |
|
|
172
177
|
*
|
|
173
178
|
* @return
|
|
174
179
|
* | Property | Description |
|
|
175
180
|
* | :-------------| :------------------------------- |
|
|
176
181
|
* | status | { error_code: number, reason: string }|
|
|
177
182
|
* | value | `true` or `false` |
|
|
183
|
+
|
|
178
184
|
*
|
|
179
185
|
* #### Example
|
|
180
186
|
*
|
|
@@ -191,7 +197,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
191
197
|
switch (_a.label) {
|
|
192
198
|
case 0:
|
|
193
199
|
this.checkCollectionName(data);
|
|
194
|
-
return [4 /*yield*/, utils_1.promisify(this.client,
|
|
200
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'HasCollection', data, data.timeout)];
|
|
195
201
|
case 1:
|
|
196
202
|
promise = _a.sent();
|
|
197
203
|
return [2 /*return*/, promise];
|
|
@@ -207,7 +213,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
207
213
|
* | :----------------- | :---- | :------------------------------- |
|
|
208
214
|
* | type(optional) | enum | All -> 0, Loaded -> 1 |
|
|
209
215
|
* | collection_names(optional) | String[] | If `type = Loaded`, Milvus will return `collection_names inMemory_percentages` |
|
|
210
|
-
*
|
|
216
|
+
* | 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 |
|
|
211
217
|
*
|
|
212
218
|
* @return
|
|
213
219
|
* | Property | Description |
|
|
@@ -227,10 +233,10 @@ var Collection = /** @class */ (function (_super) {
|
|
|
227
233
|
var promise, result;
|
|
228
234
|
return __generator(this, function (_a) {
|
|
229
235
|
switch (_a.label) {
|
|
230
|
-
case 0: return [4 /*yield*/, utils_1.promisify(this.client,
|
|
236
|
+
case 0: return [4 /*yield*/, utils_1.promisify(this.client, 'ShowCollections', {
|
|
231
237
|
type: data ? data.type : Collection_1.ShowCollectionsType.All,
|
|
232
238
|
collection_names: (data === null || data === void 0 ? void 0 : data.collection_names) || [],
|
|
233
|
-
})];
|
|
239
|
+
}, data === null || data === void 0 ? void 0 : data.timeout)];
|
|
234
240
|
case 1:
|
|
235
241
|
promise = _a.sent();
|
|
236
242
|
result = [];
|
|
@@ -254,7 +260,8 @@ var Collection = /** @class */ (function (_super) {
|
|
|
254
260
|
* @param data
|
|
255
261
|
* | Property | Type | Description |
|
|
256
262
|
* | :----------------- | :---- | :------------------------------- |
|
|
257
|
-
* | collection_name
|
|
263
|
+
* | collection_name | String | Collection name |
|
|
264
|
+
* | 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 |
|
|
258
265
|
*
|
|
259
266
|
* @return
|
|
260
267
|
* | Property | Description |
|
|
@@ -279,7 +286,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
279
286
|
switch (_a.label) {
|
|
280
287
|
case 0:
|
|
281
288
|
this.checkCollectionName(data);
|
|
282
|
-
return [4 /*yield*/, utils_1.promisify(this.client,
|
|
289
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'DescribeCollection', data, data.timeout)];
|
|
283
290
|
case 1:
|
|
284
291
|
promise = _a.sent();
|
|
285
292
|
return [2 /*return*/, promise];
|
|
@@ -293,7 +300,8 @@ var Collection = /** @class */ (function (_super) {
|
|
|
293
300
|
* @param data
|
|
294
301
|
* | Property | Type | Description |
|
|
295
302
|
* | :----------------- | :---- | :------------------------------- |
|
|
296
|
-
* | collection_name
|
|
303
|
+
* | collection_name | String | Collection name |
|
|
304
|
+
* | 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 |
|
|
297
305
|
*
|
|
298
306
|
* @return
|
|
299
307
|
* | Property | Description |
|
|
@@ -318,10 +326,10 @@ var Collection = /** @class */ (function (_super) {
|
|
|
318
326
|
switch (_a.label) {
|
|
319
327
|
case 0:
|
|
320
328
|
this.checkCollectionName(data);
|
|
321
|
-
return [4 /*yield*/, utils_1.promisify(this.client,
|
|
329
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'GetCollectionStatistics', data, data.timeout)];
|
|
322
330
|
case 1:
|
|
323
331
|
promise = _a.sent();
|
|
324
|
-
promise.data = Format_1.formatKeyValueData(promise.stats, [
|
|
332
|
+
promise.data = Format_1.formatKeyValueData(promise.stats, ['row_count']);
|
|
325
333
|
return [2 /*return*/, promise];
|
|
326
334
|
}
|
|
327
335
|
});
|
|
@@ -334,7 +342,8 @@ var Collection = /** @class */ (function (_super) {
|
|
|
334
342
|
* @param data
|
|
335
343
|
* | Property | Type | Description |
|
|
336
344
|
* | :----------------- | :---- | :------------------------------- |
|
|
337
|
-
* | collection_name
|
|
345
|
+
* | collection_name | String | Collection name |
|
|
346
|
+
* | 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 |
|
|
338
347
|
*
|
|
339
348
|
* @return
|
|
340
349
|
* | Property | Description |
|
|
@@ -357,7 +366,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
357
366
|
switch (_a.label) {
|
|
358
367
|
case 0:
|
|
359
368
|
this.checkCollectionName(data);
|
|
360
|
-
return [4 /*yield*/, utils_1.promisify(this.client,
|
|
369
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'LoadCollection', data, data.timeout)];
|
|
361
370
|
case 1:
|
|
362
371
|
promise = _a.sent();
|
|
363
372
|
return [2 /*return*/, promise];
|
|
@@ -372,7 +381,8 @@ var Collection = /** @class */ (function (_super) {
|
|
|
372
381
|
* @param data
|
|
373
382
|
* | Property | Type | Description |
|
|
374
383
|
* | :----------------- | :---- | :------------------------------- |
|
|
375
|
-
* | collection_name
|
|
384
|
+
* | collection_name | String | Collection name |
|
|
385
|
+
* | 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 |
|
|
376
386
|
*
|
|
377
387
|
* @return
|
|
378
388
|
* | Property | Description |
|
|
@@ -395,7 +405,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
395
405
|
switch (_a.label) {
|
|
396
406
|
case 0:
|
|
397
407
|
this.checkCollectionName(data);
|
|
398
|
-
return [4 /*yield*/, utils_1.promisify(this.client,
|
|
408
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'LoadCollection', data, data.timeout)];
|
|
399
409
|
case 1:
|
|
400
410
|
promise = _a.sent();
|
|
401
411
|
loadedPercentage = 0;
|
|
@@ -426,7 +436,8 @@ var Collection = /** @class */ (function (_super) {
|
|
|
426
436
|
* @param data
|
|
427
437
|
* | Property | Type | Description |
|
|
428
438
|
* | :----------------- | :---- | :------------------------------- |
|
|
429
|
-
* | collection_name
|
|
439
|
+
* | collection_name | String | Collection name |
|
|
440
|
+
* | 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 |
|
|
430
441
|
*
|
|
431
442
|
* @return
|
|
432
443
|
* | Property | Description |
|
|
@@ -449,7 +460,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
449
460
|
switch (_a.label) {
|
|
450
461
|
case 0:
|
|
451
462
|
this.checkCollectionName(data);
|
|
452
|
-
return [4 /*yield*/, utils_1.promisify(this.client,
|
|
463
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'ReleaseCollection', data, data.timeout)];
|
|
453
464
|
case 1:
|
|
454
465
|
promise = _a.sent();
|
|
455
466
|
return [2 /*return*/, promise];
|
|
@@ -464,6 +475,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
464
475
|
* | Property | Type | Description |
|
|
465
476
|
* | :----------------- | :---- | :------------------------------- |
|
|
466
477
|
* | collection_name | String | Collection name |
|
|
478
|
+
* | 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 |
|
|
467
479
|
*
|
|
468
480
|
* @return
|
|
469
481
|
* | Property | Description |
|
|
@@ -486,7 +498,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
486
498
|
switch (_a.label) {
|
|
487
499
|
case 0:
|
|
488
500
|
this.checkCollectionName(data);
|
|
489
|
-
return [4 /*yield*/, utils_1.promisify(this.client,
|
|
501
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'DropCollection', data, data.timeout)];
|
|
490
502
|
case 1:
|
|
491
503
|
promise = _a.sent();
|
|
492
504
|
return [2 /*return*/, promise];
|
|
@@ -509,7 +521,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
509
521
|
if (!data.alias) {
|
|
510
522
|
throw new Error(ErrorReason_1.ERROR_REASONS.ALIAS_NAME_IS_REQUIRED);
|
|
511
523
|
}
|
|
512
|
-
return [4 /*yield*/, utils_1.promisify(this.client,
|
|
524
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'CreateAlias', data, data.timeout)];
|
|
513
525
|
case 1:
|
|
514
526
|
promise = _a.sent();
|
|
515
527
|
return [2 /*return*/, promise];
|
|
@@ -530,7 +542,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
530
542
|
if (!data.alias) {
|
|
531
543
|
throw new Error(ErrorReason_1.ERROR_REASONS.ALIAS_NAME_IS_REQUIRED);
|
|
532
544
|
}
|
|
533
|
-
return [4 /*yield*/, utils_1.promisify(this.client,
|
|
545
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'DropAlias', data, data.timeout)];
|
|
534
546
|
case 1:
|
|
535
547
|
promise = _a.sent();
|
|
536
548
|
return [2 /*return*/, promise];
|
|
@@ -552,7 +564,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
552
564
|
if (!data.alias) {
|
|
553
565
|
throw new Error(ErrorReason_1.ERROR_REASONS.ALIAS_NAME_IS_REQUIRED);
|
|
554
566
|
}
|
|
555
|
-
return [4 /*yield*/, utils_1.promisify(this.client,
|
|
567
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'AlterAlias', data, data.timeout)];
|
|
556
568
|
case 1:
|
|
557
569
|
promise = _a.sent();
|
|
558
570
|
return [2 /*return*/, promise];
|
|
@@ -566,7 +578,8 @@ var Collection = /** @class */ (function (_super) {
|
|
|
566
578
|
* @param data
|
|
567
579
|
* | Property | Type | Description |
|
|
568
580
|
* | :----------------- | :---- | :------------------------------- |
|
|
569
|
-
* | collection_name
|
|
581
|
+
* | collection_name | String | The collection name to compact |
|
|
582
|
+
* | 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 |
|
|
570
583
|
*
|
|
571
584
|
* @return
|
|
572
585
|
* | Property | Description |
|
|
@@ -592,9 +605,9 @@ var Collection = /** @class */ (function (_super) {
|
|
|
592
605
|
return [4 /*yield*/, this.describeCollection(data)];
|
|
593
606
|
case 1:
|
|
594
607
|
collectionInfo = _a.sent();
|
|
595
|
-
return [4 /*yield*/, utils_1.promisify(this.client,
|
|
608
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'ManualCompaction', {
|
|
596
609
|
collectionID: collectionInfo.collectionID,
|
|
597
|
-
})];
|
|
610
|
+
}, data.timeout)];
|
|
598
611
|
case 2:
|
|
599
612
|
res = _a.sent();
|
|
600
613
|
return [2 /*return*/, res];
|
|
@@ -609,6 +622,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
609
622
|
* | Property | Type | Description |
|
|
610
623
|
* | :----------------- | :---- | :------------------------------- |
|
|
611
624
|
* | compactionID | number or string | the id returned by compact |
|
|
625
|
+
* | 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 |
|
|
612
626
|
*
|
|
613
627
|
* @return
|
|
614
628
|
* | Property | Description |
|
|
@@ -633,7 +647,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
633
647
|
if (!data || !data.compactionID) {
|
|
634
648
|
throw new Error(ErrorReason_1.ERROR_REASONS.COMPACTIONID_IS_REQUIRED);
|
|
635
649
|
}
|
|
636
|
-
return [4 /*yield*/, utils_1.promisify(this.client,
|
|
650
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'GetCompactionState', data, data.timeout)];
|
|
637
651
|
case 1:
|
|
638
652
|
res = _a.sent();
|
|
639
653
|
return [2 /*return*/, res];
|
|
@@ -648,6 +662,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
648
662
|
* | Property | Type | Description |
|
|
649
663
|
* | :----------------- | :---- | :------------------------------- |
|
|
650
664
|
* | compactionID | number or string | the id returned by compact |
|
|
665
|
+
* | 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 |
|
|
651
666
|
*
|
|
652
667
|
* @return
|
|
653
668
|
* | Property | Description |
|
|
@@ -672,7 +687,7 @@ var Collection = /** @class */ (function (_super) {
|
|
|
672
687
|
if (!data || !data.compactionID) {
|
|
673
688
|
throw new Error(ErrorReason_1.ERROR_REASONS.COMPACTIONID_IS_REQUIRED);
|
|
674
689
|
}
|
|
675
|
-
return [4 /*yield*/, utils_1.promisify(this.client,
|
|
690
|
+
return [4 /*yield*/, utils_1.promisify(this.client, 'GetCompactionStateWithPlans', data, data.timeout)];
|
|
676
691
|
case 1:
|
|
677
692
|
res = _a.sent();
|
|
678
693
|
return [2 /*return*/, res];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Collection.js","sourceRoot":"","sources":["../../milvus/Collection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAAkC;AAClC,kCAAqC;AACrC,mDAAoD;AACpD,iDAiB4B;AAC5B,6CAW0B;AAC1B,6CAAyD;AACzD,8CAAwB;AACxB,yCAAqE;AACrE,mCAAkC;AAElC,IAAM,UAAU,GAAG,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,6BAA6B,CAAC,CAAC;AAE1E;;GAEG;AACH;IAAgC,8BAAM;IAAtC;;
|
|
1
|
+
{"version":3,"file":"Collection.js","sourceRoot":"","sources":["../../milvus/Collection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAAkC;AAClC,kCAAqC;AACrC,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,CAAC,OAAO,CACb,EAAA;;wBALK,GAAG,GAAG,SAKX;wBACD,sBAAO,GAAG,EAAC;;;;KACZ;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACG,gDAA2B,GAAjC,UACE,IAA2B;;;;;;wBAE3B,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;4BAC/B,MAAM,IAAI,KAAK,CAAC,2BAAa,CAAC,wBAAwB,CAAC,CAAC;yBACzD;wBACW,qBAAM,iBAAS,CACzB,IAAI,CAAC,MAAM,EACX,6BAA6B,EAC7B,IAAI,EACJ,IAAI,CAAC,OAAO,CACb,EAAA;;wBALK,GAAG,GAAG,SAKX;wBACD,sBAAO,GAAG,EAAC;;;;KACZ;IACH,iBAAC;AAAD,CAAC,AA9kBD,CAAgC,eAAM,GA8kBrC;AA9kBY,gCAAU"}
|
package/dist/milvus/Data.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare class Data extends Client {
|
|
|
17
17
|
* | partition_name(optional)| String | Partition name |
|
|
18
18
|
* | fields_data | { [x: string]: any }[] | If the field type is binary, the vector data length needs to be dimension / 8 |
|
|
19
19
|
* | hash_keys(optional) | Number[] | The hash value depends on the primarykey value |
|
|
20
|
+
* | 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 |
|
|
20
21
|
*
|
|
21
22
|
* @return
|
|
22
23
|
* | Property | Description |
|
|
@@ -49,6 +50,7 @@ export declare class Data extends Client {
|
|
|
49
50
|
* | collection_name | String | Collection name |
|
|
50
51
|
* | partition_name(optional)| String | Partition name |
|
|
51
52
|
* | expr | String | Boolean expression used to filter attribute. |
|
|
53
|
+
* | 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 |
|
|
52
54
|
*
|
|
53
55
|
* @return
|
|
54
56
|
* | Property | Description |
|
|
@@ -81,7 +83,8 @@ export declare class Data extends Client {
|
|
|
81
83
|
* | output_fields(optional) | String[] | Support scalar field |
|
|
82
84
|
* | vector_type | enum | Binary field -> 100, Float field -> 101 |
|
|
83
85
|
* | travel_timestamp | number | We can get timestamp after insert success. Use this timestamp we can time travel in vector search.|
|
|
84
|
-
|
|
86
|
+
* | 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 |
|
|
87
|
+
*
|
|
85
88
|
* @return
|
|
86
89
|
* | Property | Description |
|
|
87
90
|
* | :-------------| :------------------------------- |
|
|
@@ -116,6 +119,7 @@ export declare class Data extends Client {
|
|
|
116
119
|
* | Property | Type | Description |
|
|
117
120
|
* | :---------------------- | :---- | :------------------------------- |
|
|
118
121
|
* | collection_names | String[] | Array of collection names |
|
|
122
|
+
* | 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 |
|
|
119
123
|
*
|
|
120
124
|
* @return
|
|
121
125
|
* | Property | Description |
|
|
@@ -139,6 +143,7 @@ export declare class Data extends Client {
|
|
|
139
143
|
* | Property | Type | Description |
|
|
140
144
|
* | :---------------------- | :---- | :------------------------------- |
|
|
141
145
|
* | collection_names | String[] | Array of collection names |
|
|
146
|
+
* | 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 |
|
|
142
147
|
*
|
|
143
148
|
* @return
|
|
144
149
|
* | Property | Description |
|
|
@@ -164,7 +169,7 @@ export declare class Data extends Client {
|
|
|
164
169
|
* | expr | String | Scalar field filter expression |
|
|
165
170
|
* | partitions_names(optional) | String[] | Array of partition names |
|
|
166
171
|
* | output_fields | String[] | Vector or scalar field to be returned |
|
|
167
|
-
*
|
|
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 |
|
|
168
173
|
*
|
|
169
174
|
*
|
|
170
175
|
* @return
|
|
@@ -205,7 +210,7 @@ export declare class Data extends Client {
|
|
|
205
210
|
* | Property | Type | Description |
|
|
206
211
|
* | :---------------------- | :---- | :------------------------------- |
|
|
207
212
|
* | segmentIDs | Array | The segment ids |
|
|
208
|
-
*
|
|
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 |
|
|
209
214
|
*
|
|
210
215
|
*
|
|
211
216
|
* @return
|
|
@@ -234,7 +239,7 @@ export declare class Data extends Client {
|
|
|
234
239
|
* | src_nodeID | number | The source query node id to balance. |
|
|
235
240
|
* | dst_nodeIDs | number[] | The destination query node ids to balance.(optional) |
|
|
236
241
|
* | sealed_segmentIDs | number[] | Sealed segment ids to balance.(optional) |
|
|
237
|
-
*
|
|
242
|
+
* | 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 |
|
|
238
243
|
*
|
|
239
244
|
* @return
|
|
240
245
|
* | Property | Description |
|
|
@@ -259,7 +264,7 @@ export declare class Data extends Client {
|
|
|
259
264
|
* | Property | Type | Description |
|
|
260
265
|
* | :---------------------- | :---- | :------------------------------- |
|
|
261
266
|
* | collectionName | String | The name of the collection to get segments info. |
|
|
262
|
-
*
|
|
267
|
+
* | 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 |
|
|
263
268
|
*
|
|
264
269
|
*
|
|
265
270
|
* @return
|