2021-01-14 14:24:14 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
package milvus.proto.milvus;
|
|
|
|
|
2021-04-22 14:45:57 +08:00
|
|
|
option go_package = "github.com/milvus-io/milvus/internal/proto/milvuspb";
|
2021-01-14 14:24:14 +08:00
|
|
|
|
|
|
|
import "common.proto";
|
2021-01-15 20:12:26 +08:00
|
|
|
import "schema.proto";
|
2021-01-14 14:24:14 +08:00
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
service MilvusService {
|
|
|
|
rpc CreateCollection(CreateCollectionRequest) returns (common.Status) {}
|
|
|
|
rpc DropCollection(DropCollectionRequest) returns (common.Status) {}
|
|
|
|
rpc HasCollection(HasCollectionRequest) returns (BoolResponse) {}
|
|
|
|
rpc LoadCollection(LoadCollectionRequest) returns (common.Status) {}
|
|
|
|
rpc ReleaseCollection(ReleaseCollectionRequest) returns (common.Status) {}
|
|
|
|
rpc DescribeCollection(DescribeCollectionRequest) returns (DescribeCollectionResponse) {}
|
|
|
|
rpc GetCollectionStatistics(GetCollectionStatisticsRequest) returns (GetCollectionStatisticsResponse) {}
|
|
|
|
rpc ShowCollections(ShowCollectionsRequest) returns (ShowCollectionsResponse) {}
|
|
|
|
|
|
|
|
rpc CreatePartition(CreatePartitionRequest) returns (common.Status) {}
|
|
|
|
rpc DropPartition(DropPartitionRequest) returns (common.Status) {}
|
|
|
|
rpc HasPartition(HasPartitionRequest) returns (BoolResponse) {}
|
|
|
|
rpc LoadPartitions(LoadPartitionsRequest) returns (common.Status) {}
|
|
|
|
rpc ReleasePartitions(ReleasePartitionsRequest) returns (common.Status) {}
|
|
|
|
rpc GetPartitionStatistics(GetPartitionStatisticsRequest) returns (GetPartitionStatisticsResponse) {}
|
|
|
|
rpc ShowPartitions(ShowPartitionsRequest) returns (ShowPartitionsResponse) {}
|
|
|
|
|
|
|
|
rpc CreateIndex(CreateIndexRequest) returns (common.Status) {}
|
|
|
|
rpc DescribeIndex(DescribeIndexRequest) returns (DescribeIndexResponse) {}
|
|
|
|
rpc GetIndexState(GetIndexStateRequest) returns (GetIndexStateResponse) {}
|
2021-04-27 15:46:45 +08:00
|
|
|
rpc GetIndexBuildProgress(GetIndexBuildProgressRequest) returns (GetIndexBuildProgressResponse) {}
|
2021-03-12 14:22:09 +08:00
|
|
|
rpc DropIndex(DropIndexRequest) returns (common.Status) {}
|
|
|
|
|
|
|
|
rpc Insert(InsertRequest) returns (InsertResponse) {}
|
|
|
|
rpc Search(SearchRequest) returns (SearchResults) {}
|
2021-05-19 18:45:15 +08:00
|
|
|
rpc Retrieve(RetrieveRequest) returns (RetrieveResults) {}
|
2021-03-12 14:22:09 +08:00
|
|
|
rpc Flush(FlushRequest) returns (common.Status) {}
|
|
|
|
|
|
|
|
rpc GetPersistentSegmentInfo(GetPersistentSegmentInfoRequest) returns (GetPersistentSegmentInfoResponse) {}
|
|
|
|
rpc GetQuerySegmentInfo(GetQuerySegmentInfoRequest) returns (GetQuerySegmentInfoResponse) {}
|
|
|
|
|
2021-05-25 14:44:43 +08:00
|
|
|
rpc Dummy(DummyRequest) returns (DummyResponse) {}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
// TODO: remove
|
|
|
|
rpc RegisterLink(RegisterLinkRequest) returns (RegisterLinkResponse) {}
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
message CreateCollectionRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
2021-01-15 20:12:26 +08:00
|
|
|
// `schema` is the serialized `schema.CollectionSchema`
|
2021-05-27 16:34:31 +08:00
|
|
|
bytes schema = 4; // must
|
|
|
|
int32 shards_num = 5; // must. Once set, no modification is allowed
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message DropCollectionRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message HasCollectionRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
2021-05-18 17:12:17 +08:00
|
|
|
uint64 time_stamp = 4;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-01-15 20:12:26 +08:00
|
|
|
message BoolResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
bool value = 2;
|
|
|
|
}
|
|
|
|
|
2021-01-18 21:39:56 +08:00
|
|
|
message StringResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
string value = 2;
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
message DescribeCollectionRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
2021-02-25 16:08:56 +08:00
|
|
|
int64 collectionID = 4;
|
2021-05-18 17:12:17 +08:00
|
|
|
uint64 time_stamp = 5;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message DescribeCollectionResponse {
|
2021-01-15 20:12:26 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
schema.CollectionSchema schema = 2;
|
2021-01-22 15:41:54 +08:00
|
|
|
int64 collectionID = 3;
|
2021-05-17 19:15:01 +08:00
|
|
|
repeated string virtual_channel_names = 4;
|
|
|
|
repeated string physical_channel_names = 5;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message LoadCollectionRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message ReleaseCollectionRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetCollectionStatisticsRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetCollectionStatisticsResponse {
|
2021-01-18 21:39:56 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
repeated common.KeyValuePair stats = 2;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-06-03 19:09:33 +08:00
|
|
|
enum ShowCollectionsType {
|
|
|
|
All = 0;
|
|
|
|
InMemory = 1;
|
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message ShowCollectionsRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-18 17:12:17 +08:00
|
|
|
uint64 time_stamp = 3;
|
2021-06-03 19:09:33 +08:00
|
|
|
ShowCollectionsType type = 4;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message ShowCollectionsResponse {
|
2021-01-18 21:39:56 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
repeated string collection_names = 2;
|
2021-06-03 19:09:33 +08:00
|
|
|
repeated int64 collection_ids = 3;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message CreatePartitionRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
|
|
|
string partition_name = 4; // must
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message DropPartitionRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
|
|
|
string partition_name = 4; // must
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message HasPartitionRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
|
|
|
string partition_name = 4; // must
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message LoadPartitionsRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 14:24:14 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
|
|
|
repeated string partition_names = 4; // must
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message ReleasePartitionsRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
|
|
|
repeated string partition_names = 4; // must
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetPartitionStatisticsRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
|
|
|
string partition_name = 4; // must
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetPartitionStatisticsResponse {
|
2021-01-18 21:39:56 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
repeated common.KeyValuePair stats = 2;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message ShowPartitionsRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
2021-01-18 19:32:08 +08:00
|
|
|
int64 collectionID = 4;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message ShowPartitionsResponse {
|
2021-01-18 21:39:56 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
repeated string partition_names = 2;
|
|
|
|
repeated int64 partitionIDs = 3;
|
2021-01-18 19:32:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message DescribeSegmentRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
int64 collectionID = 2;
|
|
|
|
int64 segmentID = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DescribeSegmentResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
int64 indexID = 2;
|
2021-01-28 17:25:43 +08:00
|
|
|
int64 buildID = 3;
|
2021-03-08 15:46:51 +08:00
|
|
|
bool enable_index = 4;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message ShowSegmentsRequest {
|
2021-01-18 19:32:08 +08:00
|
|
|
common.MsgBase base = 1;
|
|
|
|
int64 collectionID = 2;
|
|
|
|
int64 partitionID = 3;
|
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message ShowSegmentsResponse {
|
2021-01-18 19:32:08 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
repeated int64 segmentIDs = 2;
|
|
|
|
}
|
2021-01-14 14:24:14 +08:00
|
|
|
|
|
|
|
message CreateIndexRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
|
|
|
string field_name = 4; // must
|
|
|
|
repeated common.KeyValuePair extra_params = 5; // must
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message DescribeIndexRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
2021-01-14 14:24:14 +08:00
|
|
|
string field_name = 4;
|
2021-05-27 16:34:31 +08:00
|
|
|
string index_name = 5; // No need to set up for now @2021.06.30
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message IndexDescription {
|
|
|
|
string index_name = 1;
|
2021-03-12 14:22:09 +08:00
|
|
|
int64 indexID = 2;
|
2021-02-08 14:20:29 +08:00
|
|
|
repeated common.KeyValuePair params = 3;
|
2021-04-27 10:30:55 +08:00
|
|
|
string field_name = 4;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message DescribeIndexResponse {
|
2021-01-18 19:32:08 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
repeated IndexDescription index_descriptions = 2;
|
|
|
|
}
|
|
|
|
|
2021-04-27 15:46:45 +08:00
|
|
|
message GetIndexBuildProgressRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-04-27 15:46:45 +08:00
|
|
|
string db_name = 2 ;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
2021-04-27 15:46:45 +08:00
|
|
|
string field_name = 4;
|
2021-05-27 16:34:31 +08:00
|
|
|
string index_name = 5; // must
|
2021-04-27 15:46:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetIndexBuildProgressResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
int64 indexed_rows = 2;
|
|
|
|
int64 total_rows = 3;
|
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetIndexStateRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-18 19:32:08 +08:00
|
|
|
string db_name = 2 ;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
2021-01-18 19:32:08 +08:00
|
|
|
string field_name = 4;
|
2021-05-27 16:34:31 +08:00
|
|
|
string index_name = 5; // No need to set up for now @2021.06.30
|
2021-01-18 19:32:08 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetIndexStateResponse {
|
2021-01-18 19:32:08 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
common.IndexState state = 2;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-02-20 10:14:03 +08:00
|
|
|
message DropIndexRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-02-20 10:14:03 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
2021-02-20 10:14:03 +08:00
|
|
|
string field_name = 4;
|
2021-05-27 16:34:31 +08:00
|
|
|
string index_name = 5; // No need to set up for now @2021.06.30
|
2021-02-20 10:14:03 +08:00
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
message InsertRequest {
|
2021-06-03 15:03:34 +08:00
|
|
|
common.MsgBase base = 1;
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-06-03 15:03:34 +08:00
|
|
|
string collection_name = 3;
|
|
|
|
string partition_name = 4;
|
|
|
|
repeated schema.FieldData fields_data = 5;
|
|
|
|
repeated uint32 hash_keys = 6;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message InsertResponse {
|
2021-01-18 21:39:56 +08:00
|
|
|
common.Status status = 1;
|
2021-03-12 14:22:09 +08:00
|
|
|
int64 rowID_begin = 2;
|
|
|
|
int64 rowID_end = 3;
|
2021-01-15 20:12:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
enum PlaceholderType {
|
2021-03-12 14:22:09 +08:00
|
|
|
None = 0;
|
|
|
|
BinaryVector = 100;
|
|
|
|
FloatVector = 101;
|
2021-01-15 20:12:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message PlaceholderValue {
|
|
|
|
string tag = 1;
|
|
|
|
PlaceholderType type = 2;
|
|
|
|
// values is a 2d-array, every array contains a vector
|
|
|
|
repeated bytes values = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PlaceholderGroup {
|
|
|
|
repeated PlaceholderValue placeholders = 1;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message SearchRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-01-14 20:30:27 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
|
|
|
repeated string partition_names = 4; // must
|
|
|
|
string dsl = 5; // must
|
2021-01-15 20:12:26 +08:00
|
|
|
// serialized `PlaceholderGroup`
|
2021-05-27 16:34:31 +08:00
|
|
|
bytes placeholder_group = 6; // must
|
|
|
|
common.DslType dsl_type = 7; // must
|
|
|
|
repeated common.KeyValuePair search_params = 8; // must
|
2021-01-15 20:12:26 +08:00
|
|
|
}
|
|
|
|
|
2021-05-19 18:45:15 +08:00
|
|
|
message RetrieveRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-05-19 18:45:15 +08:00
|
|
|
string db_name = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collection_name = 3; // must
|
|
|
|
repeated string partition_names = 4; // must
|
|
|
|
schema.IDs ids = 5; // must
|
|
|
|
repeated string output_fields = 6; // must
|
2021-05-19 18:45:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message RetrieveResults {
|
|
|
|
common.Status status = 1;
|
|
|
|
schema.IDs ids = 2;
|
|
|
|
repeated schema.FieldData fields_data = 3;
|
|
|
|
}
|
|
|
|
|
2021-01-15 20:12:26 +08:00
|
|
|
message Hits {
|
|
|
|
repeated int64 IDs = 1;
|
|
|
|
repeated bytes row_data = 2;
|
|
|
|
repeated float scores = 3;
|
|
|
|
}
|
|
|
|
|
2021-01-18 19:32:08 +08:00
|
|
|
message SearchResults {
|
2021-01-15 20:12:26 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
repeated bytes hits = 2;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message FlushRequest {
|
2021-01-16 15:06:19 +08:00
|
|
|
common.MsgBase base = 1;
|
2021-01-14 14:24:14 +08:00
|
|
|
string db_name = 2;
|
2021-02-03 17:30:10 +08:00
|
|
|
repeated string collection_names = 3;
|
2021-01-15 20:12:26 +08:00
|
|
|
}
|
|
|
|
|
2021-02-03 18:55:00 +08:00
|
|
|
message PersistentSegmentInfo {
|
|
|
|
int64 segmentID = 1;
|
|
|
|
int64 collectionID = 2;
|
|
|
|
int64 partitionID = 3;
|
2021-05-21 14:51:25 +08:00
|
|
|
int64 num_rows = 4;
|
|
|
|
common.SegmentState state = 5;
|
2021-02-03 18:55:00 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetPersistentSegmentInfoRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-02-03 18:55:00 +08:00
|
|
|
string dbName = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collectionName = 3; // must
|
2021-02-03 18:55:00 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetPersistentSegmentInfoResponse {
|
2021-02-03 18:55:00 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
repeated PersistentSegmentInfo infos = 2;
|
|
|
|
}
|
|
|
|
|
2021-02-04 14:37:12 +08:00
|
|
|
message QuerySegmentInfo {
|
|
|
|
int64 segmentID = 1;
|
|
|
|
int64 collectionID = 2;
|
|
|
|
int64 partitionID = 3;
|
|
|
|
int64 mem_size = 4;
|
|
|
|
int64 num_rows = 5;
|
|
|
|
string index_name = 6;
|
|
|
|
int64 indexID = 7;
|
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetQuerySegmentInfoRequest {
|
2021-05-27 16:34:31 +08:00
|
|
|
common.MsgBase base = 1; // must
|
2021-02-04 14:37:12 +08:00
|
|
|
string dbName = 2;
|
2021-05-27 16:34:31 +08:00
|
|
|
string collectionName = 3; // must
|
2021-02-04 14:37:12 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetQuerySegmentInfoResponse {
|
2021-02-04 14:37:12 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
repeated QuerySegmentInfo infos = 2;
|
|
|
|
}
|
|
|
|
|
2021-05-25 14:44:43 +08:00
|
|
|
message DummyRequest {
|
|
|
|
string request_type = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DummyResponse {
|
|
|
|
string response = 1;
|
|
|
|
}
|
2021-02-03 18:55:00 +08:00
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message RegisterLinkRequest {
|
2021-01-15 20:12:26 +08:00
|
|
|
}
|
2021-01-22 12:57:23 +08:00
|
|
|
|
|
|
|
message RegisterLinkResponse {
|
|
|
|
common.Address address = 1;
|
|
|
|
common.Status status = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
service ProxyService {
|
2021-03-12 14:22:09 +08:00
|
|
|
rpc RegisterLink(RegisterLinkRequest) returns (RegisterLinkResponse) {}
|
2021-01-22 12:57:23 +08:00
|
|
|
}
|