mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
3602376a10
Signed-off-by: sunby <bingyi.sun@zilliz.com>
177 lines
4.3 KiB
Protocol Buffer
177 lines
4.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package milvus.proto.query;
|
|
|
|
option go_package = "github.com/zilliztech/milvus-distributed/internal/proto/querypb";
|
|
|
|
import "common.proto";
|
|
import "internal.proto";
|
|
|
|
message RegisterNodeRequest {
|
|
common.MsgBase base = 1;
|
|
common.Address address = 2;
|
|
}
|
|
|
|
message RegisterNodeResponse {
|
|
common.Status status = 1;
|
|
internal.InitParams init_params = 2;
|
|
}
|
|
|
|
message ShowCollectionRequest {
|
|
common.MsgBase base = 1;
|
|
int64 dbID = 2;
|
|
}
|
|
|
|
message ShowCollectionResponse {
|
|
common.Status status = 1;
|
|
repeated int64 collectionIDs = 2;
|
|
}
|
|
|
|
message LoadCollectionRequest {
|
|
common.MsgBase base = 1;
|
|
int64 dbID = 2;
|
|
int64 collectionID = 3;
|
|
}
|
|
|
|
message ReleaseCollectionRequest {
|
|
common.MsgBase base = 1;
|
|
int64 dbID = 2;
|
|
int64 collectionID = 3;
|
|
}
|
|
|
|
message ShowPartitionRequest {
|
|
common.MsgBase base = 1;
|
|
int64 dbID = 2;
|
|
int64 collectionID = 3;
|
|
}
|
|
|
|
message ShowPartitionResponse {
|
|
common.Status status = 1;
|
|
repeated int64 partitionIDs = 2;
|
|
}
|
|
|
|
enum PartitionState {
|
|
NotExist = 0;
|
|
NotPresent = 1;
|
|
OnDist = 2;
|
|
PartialInMemory = 3;
|
|
InMemory = 4;
|
|
PartialInGPU = 5;
|
|
InGPU = 6;
|
|
}
|
|
|
|
message PartitionStates {
|
|
int64 partitionID = 1;
|
|
PartitionState state = 2;
|
|
}
|
|
|
|
message PartitionStatesRequest {
|
|
common.MsgBase base = 1;
|
|
int64 dbID = 2;
|
|
int64 collectionID = 3;
|
|
repeated int64 partitionIDs = 4;
|
|
}
|
|
|
|
message PartitionStatesResponse {
|
|
common.Status status = 1;
|
|
repeated PartitionStates partition_descriptions = 2;
|
|
}
|
|
|
|
message LoadPartitionRequest {
|
|
common.MsgBase base = 1;
|
|
int64 dbID = 2;
|
|
int64 collectionID = 3;
|
|
repeated int64 partitionIDs = 4;
|
|
}
|
|
|
|
message ReleasePartitionRequest {
|
|
common.MsgBase base = 1;
|
|
int64 dbID = 2;
|
|
int64 collectionID = 3;
|
|
repeated int64 partitionIDs = 4;
|
|
}
|
|
|
|
message CreateQueryChannelResponse {
|
|
common.Status status = 1;
|
|
string request_channel = 2;
|
|
string result_channel = 3;
|
|
}
|
|
|
|
message AddQueryChannelsRequest {
|
|
common.MsgBase base = 1;
|
|
string request_channelID = 2;
|
|
string result_channelID = 3;
|
|
}
|
|
|
|
message RemoveQueryChannelsRequest {
|
|
common.Status status = 1;
|
|
common.MsgBase base = 2;
|
|
string request_channelID = 3;
|
|
string result_channelID = 4;
|
|
}
|
|
|
|
message WatchDmChannelsRequest {
|
|
common.MsgBase base = 1;
|
|
repeated string channelIDs = 2;
|
|
}
|
|
|
|
message LoadSegmentRequest {
|
|
common.MsgBase base = 1;
|
|
int64 dbID = 2;
|
|
int64 collectionID = 3;
|
|
int64 partitionID = 4;
|
|
repeated int64 segmentIDs = 5;
|
|
repeated int64 fieldIDs = 6;
|
|
}
|
|
|
|
message ReleaseSegmentRequest {
|
|
common.MsgBase base = 1;
|
|
int64 dbID = 2;
|
|
int64 collectionID = 3;
|
|
repeated int64 partitionIDs = 4;
|
|
repeated int64 segmentIDs = 5;
|
|
repeated int64 fieldIDs = 6;
|
|
}
|
|
|
|
message GetTimeTickChannelResponse {
|
|
common.Status status = 1;
|
|
string time_tick_channelID = 2;
|
|
}
|
|
|
|
message GetStatsChannelResponse {
|
|
common.Status status = 1;
|
|
string stats_channelID = 2;
|
|
}
|
|
|
|
message ServiceStatesResponse {
|
|
common.Status status = 1;
|
|
internal.ComponentStates server_states = 2;
|
|
}
|
|
|
|
service QueryService {
|
|
rpc RegisterNode(RegisterNodeRequest) returns (RegisterNodeResponse) {}
|
|
|
|
rpc ShowCollections(ShowCollectionRequest) returns (ShowCollectionResponse) {}
|
|
rpc ShowPartitions(ShowPartitionRequest) returns (ShowPartitionResponse) {}
|
|
|
|
rpc LoadPartitions(LoadPartitionRequest) returns (common.Status) {}
|
|
rpc ReleasePartitions(ReleasePartitionRequest) returns (common.Status) {}
|
|
rpc LoadCollection(LoadCollectionRequest) returns (common.Status) {}
|
|
rpc ReleaseCollection(ReleaseCollectionRequest) returns (common.Status) {}
|
|
|
|
rpc CreateQueryChannel(common.Empty ) returns (CreateQueryChannelResponse) {}
|
|
rpc GetTimeTickChannel(common.Empty) returns (GetTimeTickChannelResponse) {}
|
|
rpc GetStatsChannel(common.Empty) returns (GetStatsChannelResponse) {}
|
|
rpc GetPartitionStates(PartitionStatesRequest) returns (PartitionStatesResponse) {}
|
|
rpc GetComponentStates(common.Empty) returns (ServiceStatesResponse) {}
|
|
}
|
|
|
|
service QueryNode {
|
|
rpc AddQueryChannel(AddQueryChannelsRequest) returns (common.Status) {}
|
|
rpc RemoveQueryChannel(RemoveQueryChannelsRequest) returns (common.Status) {}
|
|
rpc WatchDmChannels(WatchDmChannelsRequest) returns (common.Status) {}
|
|
rpc LoadSegments(LoadSegmentRequest) returns (common.Status) {}
|
|
rpc ReleaseSegments(ReleaseSegmentRequest) returns (common.Status) {}
|
|
rpc GetPartitionState(PartitionStatesRequest) returns (PartitionStatesResponse) {}
|
|
}
|