@zilliz/milvus2-sdk-node 2.1.3 → 2.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -40
- package/dist/milvus/Collection.d.ts +44 -2
- package/dist/milvus/Collection.js +80 -19
- package/dist/milvus/Collection.js.map +1 -1
- package/dist/milvus/Data.d.ts +61 -8
- package/dist/milvus/Data.js +142 -44
- package/dist/milvus/Data.js.map +1 -1
- package/dist/milvus/MilvusIndex.js +6 -6
- package/dist/milvus/MilvusIndex.js.map +1 -1
- package/dist/milvus/Partition.js +8 -8
- package/dist/milvus/Partition.js.map +1 -1
- package/dist/milvus/User.js +7 -7
- package/dist/milvus/User.js.map +1 -1
- package/dist/milvus/const/ErrorReason.d.ts +4 -1
- package/dist/milvus/const/ErrorReason.js +3 -0
- package/dist/milvus/const/ErrorReason.js.map +1 -1
- package/dist/milvus/index.d.ts +3 -1
- package/dist/milvus/index.js +32 -4
- package/dist/milvus/index.js.map +1 -1
- package/dist/milvus/types/Collection.d.ts +8 -0
- package/dist/milvus/types/Common.d.ts +9 -1
- package/dist/milvus/types/Common.js +10 -1
- package/dist/milvus/types/Common.js.map +1 -1
- package/dist/milvus/types/Data.d.ts +15 -1
- package/dist/milvus/types/Response.d.ts +45 -1
- package/dist/milvus/types/Response.js.map +1 -1
- package/dist/milvus/types/Search.d.ts +3 -0
- package/dist/milvus/types.js +5 -1
- package/dist/milvus/types.js.map +1 -1
- package/dist/milvus/utils/Format.js +14 -10
- package/dist/milvus/utils/Format.js.map +1 -1
- package/dist/milvus/utils/index.d.ts +1 -1
- package/dist/proto/proto/common.proto +39 -24
- package/dist/proto/proto/google/protobuf/descriptor.proto +0 -14
- package/dist/proto/proto/milvus.proto +104 -56
- package/dist/proto/proto/schema.proto +10 -2
- package/dist/sdk.json +1 -1
- package/dist/utils/index.js +9 -5
- package/dist/utils/index.js.map +1 -1
- package/package.json +9 -9
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
// A valid .proto file can be translated directly to a FileDescriptorProto
|
|
37
37
|
// without any other information (e.g. without reading its imports).
|
|
38
38
|
|
|
39
|
-
|
|
40
39
|
syntax = "proto2";
|
|
41
40
|
|
|
42
41
|
package google.protobuf;
|
|
@@ -134,7 +133,6 @@ message ExtensionRangeOptions {
|
|
|
134
133
|
// The parser stores options it doesn't recognize here. See above.
|
|
135
134
|
repeated UninterpretedOption uninterpreted_option = 999;
|
|
136
135
|
|
|
137
|
-
|
|
138
136
|
// Clients can define custom options in extensions of this message. See above.
|
|
139
137
|
extensions 1000 to max;
|
|
140
138
|
}
|
|
@@ -310,7 +308,6 @@ message MethodDescriptorProto {
|
|
|
310
308
|
optional bool server_streaming = 6 [default = false];
|
|
311
309
|
}
|
|
312
310
|
|
|
313
|
-
|
|
314
311
|
// ===================================================================
|
|
315
312
|
// Options
|
|
316
313
|
|
|
@@ -351,7 +348,6 @@ message FileOptions {
|
|
|
351
348
|
// domain names.
|
|
352
349
|
optional string java_package = 1;
|
|
353
350
|
|
|
354
|
-
|
|
355
351
|
// Controls the name of the wrapper Java class generated for the .proto file.
|
|
356
352
|
// That class will always contain the .proto file's getDescriptor() method as
|
|
357
353
|
// well as any top-level extensions defined in the .proto file.
|
|
@@ -378,7 +374,6 @@ message FileOptions {
|
|
|
378
374
|
// This option has no effect on when used with the lite runtime.
|
|
379
375
|
optional bool java_string_check_utf8 = 27 [default = false];
|
|
380
376
|
|
|
381
|
-
|
|
382
377
|
// Generated classes can be optimized for speed or code size.
|
|
383
378
|
enum OptimizeMode {
|
|
384
379
|
SPEED = 1; // Generate complete code for parsing, serialization,
|
|
@@ -395,9 +390,6 @@ message FileOptions {
|
|
|
395
390
|
// - Otherwise, the basename of the .proto file, without extension.
|
|
396
391
|
optional string go_package = 11;
|
|
397
392
|
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
393
|
// Should generic services be generated in each language? "Generic" services
|
|
402
394
|
// are not specific to any particular RPC system. They are generated by the
|
|
403
395
|
// main code generators in each language (without additional plugins).
|
|
@@ -423,7 +415,6 @@ message FileOptions {
|
|
|
423
415
|
// only to generated classes for C++.
|
|
424
416
|
optional bool cc_enable_arenas = 31 [default = true];
|
|
425
417
|
|
|
426
|
-
|
|
427
418
|
// Sets the objective c class prefix which is prepended to all objective c
|
|
428
419
|
// generated classes from this .proto. There is no default.
|
|
429
420
|
optional string objc_class_prefix = 36;
|
|
@@ -456,7 +447,6 @@ message FileOptions {
|
|
|
456
447
|
// determining the ruby package.
|
|
457
448
|
optional string ruby_package = 45;
|
|
458
449
|
|
|
459
|
-
|
|
460
450
|
// The parser stores options it doesn't recognize here.
|
|
461
451
|
// See the documentation for the "Options" section above.
|
|
462
452
|
repeated UninterpretedOption uninterpreted_option = 999;
|
|
@@ -528,7 +518,6 @@ message MessageOptions {
|
|
|
528
518
|
reserved 8; // javalite_serializable
|
|
529
519
|
reserved 9; // javanano_as_lite
|
|
530
520
|
|
|
531
|
-
|
|
532
521
|
// The parser stores options it doesn't recognize here. See above.
|
|
533
522
|
repeated UninterpretedOption uninterpreted_option = 999;
|
|
534
523
|
|
|
@@ -597,7 +586,6 @@ message FieldOptions {
|
|
|
597
586
|
// call from multiple threads concurrently, while non-const methods continue
|
|
598
587
|
// to require exclusive access.
|
|
599
588
|
//
|
|
600
|
-
//
|
|
601
589
|
// Note that implementations may choose not to check required fields within
|
|
602
590
|
// a lazy sub-message. That is, calling IsInitialized() on the outer message
|
|
603
591
|
// may return true even if the inner message has missing required fields.
|
|
@@ -627,7 +615,6 @@ message FieldOptions {
|
|
|
627
615
|
// For Google-internal migration only. Do not use.
|
|
628
616
|
optional bool weak = 10 [default = false];
|
|
629
617
|
|
|
630
|
-
|
|
631
618
|
// The parser stores options it doesn't recognize here. See above.
|
|
632
619
|
repeated UninterpretedOption uninterpreted_option = 999;
|
|
633
620
|
|
|
@@ -731,7 +718,6 @@ message MethodOptions {
|
|
|
731
718
|
extensions 1000 to max;
|
|
732
719
|
}
|
|
733
720
|
|
|
734
|
-
|
|
735
721
|
// A message representing a option the parser does not recognize. This only
|
|
736
722
|
// appears in options protos created by the compiler::Parser class.
|
|
737
723
|
// DescriptorPool resolves these when building Descriptor objects. Therefore,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package milvus.proto.milvus;
|
|
3
3
|
|
|
4
|
-
option go_package = "github.com/milvus-io/milvus/
|
|
4
|
+
option go_package = "github.com/milvus-io/milvus-proto/go-api/milvuspb";
|
|
5
5
|
|
|
6
6
|
option java_multiple_files = true;
|
|
7
7
|
option java_package = "io.milvus.grpc";
|
|
@@ -19,9 +19,9 @@ service MilvusService {
|
|
|
19
19
|
rpc LoadCollection(LoadCollectionRequest) returns (common.Status) {}
|
|
20
20
|
rpc ReleaseCollection(ReleaseCollectionRequest) returns (common.Status) {}
|
|
21
21
|
rpc DescribeCollection(DescribeCollectionRequest) returns (DescribeCollectionResponse) {}
|
|
22
|
-
rpc DescribePartition(DescribePartitionRequest) returns (DescribePartitionResponse) {}
|
|
23
22
|
rpc GetCollectionStatistics(GetCollectionStatisticsRequest) returns (GetCollectionStatisticsResponse) {}
|
|
24
23
|
rpc ShowCollections(ShowCollectionsRequest) returns (ShowCollectionsResponse) {}
|
|
24
|
+
rpc AlterCollection(AlterCollectionRequest) returns (common.Status) {}
|
|
25
25
|
|
|
26
26
|
rpc CreatePartition(CreatePartitionRequest) returns (common.Status) {}
|
|
27
27
|
rpc DropPartition(DropPartitionRequest) returns (common.Status) {}
|
|
@@ -31,13 +31,17 @@ service MilvusService {
|
|
|
31
31
|
rpc GetPartitionStatistics(GetPartitionStatisticsRequest) returns (GetPartitionStatisticsResponse) {}
|
|
32
32
|
rpc ShowPartitions(ShowPartitionsRequest) returns (ShowPartitionsResponse) {}
|
|
33
33
|
|
|
34
|
+
rpc GetLoadingProgress(GetLoadingProgressRequest) returns (GetLoadingProgressResponse) {}
|
|
35
|
+
|
|
34
36
|
rpc CreateAlias(CreateAliasRequest) returns (common.Status) {}
|
|
35
37
|
rpc DropAlias(DropAliasRequest) returns (common.Status) {}
|
|
36
38
|
rpc AlterAlias(AlterAliasRequest) returns (common.Status) {}
|
|
37
39
|
|
|
38
40
|
rpc CreateIndex(CreateIndexRequest) returns (common.Status) {}
|
|
39
41
|
rpc DescribeIndex(DescribeIndexRequest) returns (DescribeIndexResponse) {}
|
|
42
|
+
// Deprecated: use DescribeIndex instead
|
|
40
43
|
rpc GetIndexState(GetIndexStateRequest) returns (GetIndexStateResponse) {}
|
|
44
|
+
// Deprecated: use DescribeIndex instead
|
|
41
45
|
rpc GetIndexBuildProgress(GetIndexBuildProgressRequest) returns (GetIndexBuildProgressResponse) {}
|
|
42
46
|
rpc DropIndex(DropIndexRequest) returns (common.Status) {}
|
|
43
47
|
|
|
@@ -60,6 +64,8 @@ service MilvusService {
|
|
|
60
64
|
|
|
61
65
|
// https://wiki.lfaidata.foundation/display/MIL/MEP+8+--+Add+metrics+for+proxy
|
|
62
66
|
rpc GetMetrics(GetMetricsRequest) returns (GetMetricsResponse) {}
|
|
67
|
+
rpc GetComponentStates(GetComponentStatesRequest) returns (ComponentStates) {}
|
|
68
|
+
|
|
63
69
|
rpc LoadBalance(LoadBalanceRequest) returns (common.Status) {}
|
|
64
70
|
rpc GetCompactionState(GetCompactionStateRequest) returns (GetCompactionStateResponse) {}
|
|
65
71
|
rpc ManualCompaction(ManualCompactionRequest) returns (ManualCompactionResponse) {}
|
|
@@ -84,6 +90,9 @@ service MilvusService {
|
|
|
84
90
|
rpc SelectUser(SelectUserRequest) returns (SelectUserResponse) {}
|
|
85
91
|
rpc OperatePrivilege(OperatePrivilegeRequest) returns (common.Status) {}
|
|
86
92
|
rpc SelectGrant(SelectGrantRequest) returns (SelectGrantResponse) {}
|
|
93
|
+
|
|
94
|
+
rpc GetVersion(GetVersionRequest) returns (GetVersionResponse) {}
|
|
95
|
+
rpc CheckHealth(CheckHealthRequest) returns (CheckHealthResponse) {}
|
|
87
96
|
}
|
|
88
97
|
|
|
89
98
|
message CreateAliasRequest {
|
|
@@ -128,6 +137,7 @@ message CreateCollectionRequest {
|
|
|
128
137
|
int32 shards_num = 5;
|
|
129
138
|
// The consistency level that the collection used, modification is not supported now.
|
|
130
139
|
common.ConsistencyLevel consistency_level = 6;
|
|
140
|
+
repeated common.KeyValuePair properties = 7;
|
|
131
141
|
}
|
|
132
142
|
|
|
133
143
|
/**
|
|
@@ -147,6 +157,25 @@ message DropCollectionRequest {
|
|
|
147
157
|
string collection_name = 3;
|
|
148
158
|
}
|
|
149
159
|
|
|
160
|
+
/**
|
|
161
|
+
* Alter collection in milvus
|
|
162
|
+
*/
|
|
163
|
+
message AlterCollectionRequest {
|
|
164
|
+
option (common.privilege_ext_obj) = {
|
|
165
|
+
object_type: Global
|
|
166
|
+
object_privilege: PrivilegeCreateCollection
|
|
167
|
+
object_name_index: -1
|
|
168
|
+
};
|
|
169
|
+
// Not useful for now
|
|
170
|
+
common.MsgBase base = 1;
|
|
171
|
+
// Not useful for now
|
|
172
|
+
string db_name = 2;
|
|
173
|
+
// The unique collection name in milvus.(Required)
|
|
174
|
+
string collection_name = 3;
|
|
175
|
+
int64 collectionID = 4;
|
|
176
|
+
repeated common.KeyValuePair properties = 5;
|
|
177
|
+
}
|
|
178
|
+
|
|
150
179
|
/**
|
|
151
180
|
* Check collection exist in milvus or not.
|
|
152
181
|
*/
|
|
@@ -221,42 +250,7 @@ message DescribeCollectionResponse {
|
|
|
221
250
|
common.ConsistencyLevel consistency_level = 11;
|
|
222
251
|
// The collection name
|
|
223
252
|
string collection_name = 12;
|
|
224
|
-
|
|
225
|
-
repeated string loaded_partitions = 14;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Get Partition meta info like: collectionID, partitionID, if loaded in memory, ...
|
|
230
|
-
*/
|
|
231
|
-
message DescribePartitionRequest {
|
|
232
|
-
option (common.privilege_ext_obj) = {
|
|
233
|
-
object_type: Collection
|
|
234
|
-
object_privilege: PrivilegeDescribePartition
|
|
235
|
-
object_name_index: 3
|
|
236
|
-
};
|
|
237
|
-
// Not useful for now
|
|
238
|
-
common.MsgBase base = 1;
|
|
239
|
-
// Not useful for now
|
|
240
|
-
string db_name = 2;
|
|
241
|
-
string collection_name = 3;
|
|
242
|
-
string partition_name = 4;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* DescribeCollection Response
|
|
247
|
-
*/
|
|
248
|
-
message DescribePartitionResponse {
|
|
249
|
-
// Contain error_code and reason
|
|
250
|
-
common.Status status = 1;
|
|
251
|
-
string collection_name = 2;
|
|
252
|
-
string partition_name = 3;
|
|
253
|
-
int64 collectionID = 4;
|
|
254
|
-
int64 partitionID = 5;
|
|
255
|
-
// Hybrid timestamp in milvus
|
|
256
|
-
uint64 created_timestamp = 6;
|
|
257
|
-
// The utc timestamp calculated by created_timestamp
|
|
258
|
-
uint64 created_utc_timestamp = 7;
|
|
259
|
-
bool loaded = 8;
|
|
253
|
+
repeated common.KeyValuePair properties = 13;
|
|
260
254
|
}
|
|
261
255
|
|
|
262
256
|
/**
|
|
@@ -358,6 +352,7 @@ message GetCollectionStatisticsResponse {
|
|
|
358
352
|
/*
|
|
359
353
|
* This is for ShowCollectionsRequest type field.
|
|
360
354
|
*/
|
|
355
|
+
// Deprecated: use GetLoadingProgress rpc instead
|
|
361
356
|
enum ShowType {
|
|
362
357
|
// Will return all collections
|
|
363
358
|
All = 0;
|
|
@@ -383,6 +378,7 @@ message ShowCollectionsRequest {
|
|
|
383
378
|
// Decide return Loaded collections or All collections(Optional)
|
|
384
379
|
ShowType type = 4;
|
|
385
380
|
// When type is InMemory, will return these collection's inMemory_percentages.(Optional)
|
|
381
|
+
// Deprecated: use GetLoadingProgress rpc instead
|
|
386
382
|
repeated string collection_names = 5;
|
|
387
383
|
}
|
|
388
384
|
|
|
@@ -401,6 +397,7 @@ message ShowCollectionsResponse {
|
|
|
401
397
|
// The utc timestamp calculated by created_timestamp
|
|
402
398
|
repeated uint64 created_utc_timestamps = 5;
|
|
403
399
|
// Load percentage on querynode when type is InMemory
|
|
400
|
+
// Deprecated: use GetLoadingProgress rpc instead
|
|
404
401
|
repeated int64 inMemory_percentages = 6;
|
|
405
402
|
// Indicate whether query service is available
|
|
406
403
|
repeated bool query_service_available = 7;
|
|
@@ -514,6 +511,7 @@ message ShowPartitionsRequest {
|
|
|
514
511
|
// When type is InMemory, will return these patitions's inMemory_percentages.(Optional)
|
|
515
512
|
repeated string partition_names = 5;
|
|
516
513
|
// Decide return Loaded partitions or All partitions(Optional)
|
|
514
|
+
// Deprecated: use GetLoadingProgress rpc instead
|
|
517
515
|
ShowType type = 6;
|
|
518
516
|
}
|
|
519
517
|
|
|
@@ -533,6 +531,7 @@ message ShowPartitionsResponse {
|
|
|
533
531
|
// All utc timestamps calculated by created_timestamps
|
|
534
532
|
repeated uint64 created_utc_timestamps = 5;
|
|
535
533
|
// Load percentage on querynode
|
|
534
|
+
// Deprecated: use GetLoadingProgress rpc instead
|
|
536
535
|
repeated int64 inMemory_percentages = 6;
|
|
537
536
|
}
|
|
538
537
|
|
|
@@ -600,7 +599,7 @@ message DescribeIndexRequest {
|
|
|
600
599
|
string db_name = 2;
|
|
601
600
|
// The particular collection name in Milvus
|
|
602
601
|
string collection_name = 3;
|
|
603
|
-
|
|
602
|
+
// The vector field name in this particular collection
|
|
604
603
|
string field_name = 4;
|
|
605
604
|
// No need to set up for now @2021.06.30
|
|
606
605
|
string index_name = 5;
|
|
@@ -618,6 +617,12 @@ message IndexDescription {
|
|
|
618
617
|
repeated common.KeyValuePair params = 3;
|
|
619
618
|
// The vector field name
|
|
620
619
|
string field_name = 4;
|
|
620
|
+
// index build progress
|
|
621
|
+
int64 indexed_rows = 5;
|
|
622
|
+
int64 total_rows = 6;
|
|
623
|
+
// index state
|
|
624
|
+
common.IndexState state = 7;
|
|
625
|
+
string index_state_fail_reason = 8;
|
|
621
626
|
}
|
|
622
627
|
|
|
623
628
|
/*
|
|
@@ -750,8 +755,6 @@ message SearchRequest {
|
|
|
750
755
|
uint64 travel_timestamp = 10;
|
|
751
756
|
uint64 guarantee_timestamp = 11; // guarantee_timestamp
|
|
752
757
|
int64 nq = 12;
|
|
753
|
-
common.ConsistencyLevel consistency_level = 13;
|
|
754
|
-
bool use_default_consistency = 14;
|
|
755
758
|
}
|
|
756
759
|
|
|
757
760
|
message Hits {
|
|
@@ -781,6 +784,8 @@ message FlushResponse{
|
|
|
781
784
|
common.Status status = 1;
|
|
782
785
|
string db_name = 2;
|
|
783
786
|
map<string, schema.LongArray> coll_segIDs = 3;
|
|
787
|
+
map<string, schema.LongArray> flush_coll_segIDs = 4;
|
|
788
|
+
map<string, int64> coll_seal_times = 5;
|
|
784
789
|
}
|
|
785
790
|
|
|
786
791
|
message QueryRequest {
|
|
@@ -798,8 +803,6 @@ message QueryRequest {
|
|
|
798
803
|
uint64 travel_timestamp = 7;
|
|
799
804
|
uint64 guarantee_timestamp = 8; // guarantee_timestamp
|
|
800
805
|
repeated common.KeyValuePair query_params = 9; // optional
|
|
801
|
-
common.ConsistencyLevel consistency_level = 10;
|
|
802
|
-
bool use_default_consistency = 11;
|
|
803
806
|
}
|
|
804
807
|
|
|
805
808
|
message QueryResults {
|
|
@@ -833,8 +836,8 @@ message CalcDistanceResults {
|
|
|
833
836
|
common.Status status = 1;
|
|
834
837
|
// num(op_left)*num(op_right) distance values, "HAMMIN" return integer distance
|
|
835
838
|
oneof array {
|
|
836
|
-
|
|
837
|
-
|
|
839
|
+
schema.IntArray int_dist = 2;
|
|
840
|
+
schema.FloatArray float_dist = 3;
|
|
838
841
|
}
|
|
839
842
|
}
|
|
840
843
|
|
|
@@ -909,6 +912,22 @@ message GetMetricsResponse {
|
|
|
909
912
|
string component_name = 3; // metrics from which component
|
|
910
913
|
}
|
|
911
914
|
|
|
915
|
+
message ComponentInfo {
|
|
916
|
+
int64 nodeID = 1;
|
|
917
|
+
string role = 2;
|
|
918
|
+
common.StateCode state_code = 3;
|
|
919
|
+
repeated common.KeyValuePair extra_info = 4;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
message ComponentStates {
|
|
923
|
+
ComponentInfo state = 1;
|
|
924
|
+
repeated ComponentInfo subcomponent_states = 2;
|
|
925
|
+
common.Status status = 3;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
message GetComponentStatesRequest {
|
|
929
|
+
}
|
|
930
|
+
|
|
912
931
|
/*
|
|
913
932
|
* Do load balancing operation from src_nodeID to dst_nodeID.
|
|
914
933
|
*/
|
|
@@ -950,6 +969,7 @@ message GetCompactionStateResponse {
|
|
|
950
969
|
int64 executingPlanNo = 3;
|
|
951
970
|
int64 timeoutPlanNo = 4;
|
|
952
971
|
int64 completedPlanNo = 5;
|
|
972
|
+
int64 failedPlanNo = 6;
|
|
953
973
|
}
|
|
954
974
|
|
|
955
975
|
message GetCompactionPlansRequest {
|
|
@@ -1006,11 +1026,14 @@ message GetImportStateResponse {
|
|
|
1006
1026
|
repeated int64 id_list = 4; // auto generated ids if the primary key is autoid
|
|
1007
1027
|
repeated common.KeyValuePair infos = 5; // more information about the task, progress percent, file path, failed reason, etc.
|
|
1008
1028
|
int64 id = 6; // id of an import task
|
|
1009
|
-
|
|
1010
|
-
|
|
1029
|
+
int64 collection_id = 7; // collection ID of the import task.
|
|
1030
|
+
repeated int64 segment_ids = 8; // a list of segment IDs created by the import task.
|
|
1031
|
+
int64 create_ts = 9; // timestamp when the import task is created.
|
|
1011
1032
|
}
|
|
1012
1033
|
|
|
1013
1034
|
message ListImportTasksRequest {
|
|
1035
|
+
string collection_name = 1; // target collection, list all tasks if the name is empty
|
|
1036
|
+
int64 limit = 2; // maximum number of tasks returned, list all tasks if the value is 0
|
|
1014
1037
|
}
|
|
1015
1038
|
|
|
1016
1039
|
message ListImportTasksResponse {
|
|
@@ -1038,12 +1061,12 @@ message ReplicaInfo { // ReplicaGroup
|
|
|
1038
1061
|
}
|
|
1039
1062
|
|
|
1040
1063
|
message ShardReplica {
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1064
|
+
int64 leaderID = 1;
|
|
1065
|
+
string leader_addr = 2; // IP:port
|
|
1066
|
+
string dm_channel_name = 3;
|
|
1067
|
+
// optional, DO NOT save it in meta, set it only for GetReplicas()
|
|
1068
|
+
// if with_shard_nodes is true
|
|
1069
|
+
repeated int64 node_ids = 4;
|
|
1047
1070
|
}
|
|
1048
1071
|
|
|
1049
1072
|
service ProxyService {
|
|
@@ -1291,6 +1314,18 @@ message OperatePrivilegeRequest {
|
|
|
1291
1314
|
OperatePrivilegeType type = 3;
|
|
1292
1315
|
}
|
|
1293
1316
|
|
|
1317
|
+
message GetLoadingProgressRequest {
|
|
1318
|
+
// Not useful for now
|
|
1319
|
+
common.MsgBase base = 1;
|
|
1320
|
+
string collection_name = 2;
|
|
1321
|
+
repeated string partition_names = 3;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
message GetLoadingProgressResponse {
|
|
1325
|
+
common.Status status = 1;
|
|
1326
|
+
int64 progress = 2;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1294
1329
|
message MilvusExt {
|
|
1295
1330
|
string version = 1;
|
|
1296
1331
|
}
|
|
@@ -1299,6 +1334,19 @@ extend google.protobuf.FileOptions {
|
|
|
1299
1334
|
MilvusExt milvus_ext_obj = 1001;
|
|
1300
1335
|
}
|
|
1301
1336
|
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1337
|
+
message GetVersionRequest {
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
message GetVersionResponse {
|
|
1341
|
+
common.Status status = 1;
|
|
1342
|
+
string version =2;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
message CheckHealthRequest {
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
message CheckHealthResponse {
|
|
1349
|
+
common.Status status = 1;
|
|
1350
|
+
bool isHealthy = 2;
|
|
1351
|
+
repeated string reasons = 3;
|
|
1352
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package milvus.proto.schema;
|
|
3
3
|
|
|
4
|
-
option go_package = "github.com/milvus-io/milvus/
|
|
4
|
+
option go_package = "github.com/milvus-io/milvus-proto/go-api/schemapb";
|
|
5
5
|
|
|
6
6
|
option java_multiple_files = true;
|
|
7
7
|
option java_package = "io.milvus.grpc";
|
|
@@ -10,7 +10,7 @@ option java_generate_equals_and_hash = true;
|
|
|
10
10
|
|
|
11
11
|
import "common.proto";
|
|
12
12
|
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
14
|
* @brief Field data type
|
|
15
15
|
*/
|
|
16
16
|
enum DataType {
|
|
@@ -31,6 +31,13 @@ enum DataType {
|
|
|
31
31
|
FloatVector = 101;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
enum FieldState {
|
|
35
|
+
FieldCreated = 0;
|
|
36
|
+
FieldCreating = 1;
|
|
37
|
+
FieldDropping = 2;
|
|
38
|
+
FieldDropped = 3;
|
|
39
|
+
}
|
|
40
|
+
|
|
34
41
|
/**
|
|
35
42
|
* @brief Field schema
|
|
36
43
|
*/
|
|
@@ -43,6 +50,7 @@ message FieldSchema {
|
|
|
43
50
|
repeated common.KeyValuePair type_params = 6;
|
|
44
51
|
repeated common.KeyValuePair index_params = 7;
|
|
45
52
|
bool autoID = 8;
|
|
53
|
+
FieldState state = 9; // To keep compatible with older version, the default state is `Created`.
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
/**
|
package/dist/sdk.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.1
|
|
1
|
+
{"version":"2.2.0-alpha.1","milvusVersion":"v2.2.0"}
|
package/dist/utils/index.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
3
|
-
for (var i = 0,
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
+
if (ar || !(i in from)) {
|
|
5
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
+
ar[i] = from[i];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
6
10
|
};
|
|
7
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
12
|
exports.generateInsertData = exports.promisify = void 0;
|
|
@@ -33,7 +37,7 @@ function generateInsertData(fields, count) {
|
|
|
33
37
|
fields.forEach(function (v) {
|
|
34
38
|
var isVector = v.isVector, dim = v.dim, name = v.name, isBool = v.isBool;
|
|
35
39
|
value[name] = isVector
|
|
36
|
-
? __spreadArray([], Array(dim)).map(function () { return Math.random() * 10; })
|
|
40
|
+
? __spreadArray([], Array(dim), true).map(function () { return Math.random() * 10; })
|
|
37
41
|
: isBool
|
|
38
42
|
? count % 2 === 0
|
|
39
43
|
: Math.floor(Math.random() * 100000);
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,SAAgB,SAAS,CACvB,GAAQ,EACR,MAAc,EACd,MAAW,EACX,OAAgB;IAEhB,IAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAEpE,IAAM,GAAG,GAAG,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QACtC,IAAI;YACF,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,QAAQ,UAAA,EAAE,EAAE,UAAC,GAAQ,EAAE,MAAW;gBACtD,IAAI,GAAG,EAAE;oBACP,MAAM,CAAC,GAAG,CAAC,CAAC;iBACb;gBACD,OAAO,CAAC,MAAM,CAAC,CAAC;YAClB,CAAC,CAAC,CAAC;SACJ;QAAC,OAAO,CAAM,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;SACpB;IACH,CAAC,CAAC,CAAC,KAAK,CAAC,UAAA,GAAG;QACV,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC;AAxBD,8BAwBC;AAED,SAAgB,kBAAkB,CAChC,MAA6E,EAC7E,KAAa;IAEb,IAAM,OAAO,GAAG,EAAE,CAAC;;QAEjB,IAAI,KAAK,GAAQ,EAAE,CAAC;QAEpB,MAAM,CAAC,OAAO,CAAC,UAAA,CAAC;YACN,IAAA,QAAQ,GAAwB,CAAC,SAAzB,EAAE,GAAG,GAAmB,CAAC,IAApB,EAAE,IAAI,GAAa,CAAC,KAAd,EAAE,MAAM,GAAK,CAAC,OAAN,CAAO;YAC1C,KAAK,CAAC,IAAI,CAAC,GAAG,QAAQ;gBACpB,CAAC,CAAC,kBAAI,KAAK,CAAC,GAAG,CAAC,QAAE,GAAG,CAAC,cAAM,OAAA,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,EAAlB,CAAkB,CAAC;gBAC/C,CAAC,CAAC,MAAM;oBACR,CAAC,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC;oBACjB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACpB,KAAK,EAAE,CAAC;;IAZV,OAAO,KAAK,GAAG,CAAC;;KAaf;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AApBD,gDAoBC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zilliz/milvus2-sdk-node",
|
|
3
3
|
"author": "ued@zilliz.com",
|
|
4
|
-
"version": "2.1
|
|
5
|
-
"milvusVersion": "v2.
|
|
4
|
+
"version": "2.2.0-alpha.1",
|
|
5
|
+
"milvusVersion": "v2.2.0",
|
|
6
6
|
"main": "dist/milvus",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@grpc/grpc-js": "^1.2.12",
|
|
23
|
-
"@grpc/proto-loader": "^0.
|
|
23
|
+
"@grpc/proto-loader": "^0.7.3",
|
|
24
24
|
"@microsoft/api-documenter": "^7.13.39",
|
|
25
25
|
"@microsoft/api-extractor": "^7.18.5",
|
|
26
26
|
"json-schema": "^0.4.0",
|
|
27
27
|
"node-forge": "^1.0.0",
|
|
28
|
-
"protobufjs": "^
|
|
28
|
+
"protobufjs": "^7.1.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/plugin-transform-modules-commonjs": "^7.13.8",
|
|
32
|
-
"@types/jest": "^
|
|
33
|
-
"jest": "^
|
|
34
|
-
"ts-jest": "^
|
|
35
|
-
"ts-node": "^9.1
|
|
36
|
-
"typedoc": "^0.
|
|
32
|
+
"@types/jest": "^29.2.0",
|
|
33
|
+
"jest": "^29.2.1",
|
|
34
|
+
"ts-jest": "^29.0.3",
|
|
35
|
+
"ts-node": "^10.9.1",
|
|
36
|
+
"typedoc": "^0.23.17",
|
|
37
37
|
"typedoc-neo-theme": "^1.1.0",
|
|
38
38
|
"typescript": "^4.2.4"
|
|
39
39
|
},
|