mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add ShowPartitionsResponse comments in milvus.proto (#9712)
Signed-off-by: Gitea <zizhao.chen@zilliz.com>pull/9817/head
parent
21c80f069c
commit
7d49a48b47
|
@ -349,6 +349,7 @@ message GetPartitionStatisticsResponse {
|
|||
common.Status status = 1;
|
||||
repeated common.KeyValuePair stats = 2;
|
||||
}
|
||||
|
||||
/*
|
||||
* List all partitions for particular collection
|
||||
*/
|
||||
|
@ -367,13 +368,23 @@ message ShowPartitionsRequest {
|
|||
ShowType type = 6;
|
||||
}
|
||||
|
||||
/*
|
||||
* List all partitions for particular collection response.
|
||||
* The returned datas are all rows, we can format to columns by therir index.
|
||||
*/
|
||||
message ShowPartitionsResponse {
|
||||
// Contain error_code and reason
|
||||
common.Status status = 1;
|
||||
// All partition names for this collection
|
||||
repeated string partition_names = 2;
|
||||
// All partition ids for this collection
|
||||
repeated int64 partitionIDs = 3;
|
||||
repeated uint64 created_timestamps = 4; // hybrid timestamps
|
||||
repeated uint64 created_utc_timestamps = 5; // physical timestamps
|
||||
repeated int64 inMemory_percentages = 6; // load percentage on querynode
|
||||
// All hybrid timestamps
|
||||
repeated uint64 created_timestamps = 4;
|
||||
// All utc timestamps calculated by created_timestamps
|
||||
repeated uint64 created_utc_timestamps = 5;
|
||||
// Load percentage on querynode
|
||||
repeated int64 inMemory_percentages = 6;
|
||||
}
|
||||
|
||||
message DescribeSegmentRequest {
|
||||
|
|
|
@ -1713,16 +1713,25 @@ func (m *ShowPartitionsRequest) GetType() ShowType {
|
|||
return ShowType_All
|
||||
}
|
||||
|
||||
//
|
||||
// List all partitions for particular collection response.
|
||||
// The returned datas are all rows, we can format to columns by therir index.
|
||||
type ShowPartitionsResponse struct {
|
||||
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
PartitionNames []string `protobuf:"bytes,2,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"`
|
||||
PartitionIDs []int64 `protobuf:"varint,3,rep,packed,name=partitionIDs,proto3" json:"partitionIDs,omitempty"`
|
||||
CreatedTimestamps []uint64 `protobuf:"varint,4,rep,packed,name=created_timestamps,json=createdTimestamps,proto3" json:"created_timestamps,omitempty"`
|
||||
CreatedUtcTimestamps []uint64 `protobuf:"varint,5,rep,packed,name=created_utc_timestamps,json=createdUtcTimestamps,proto3" json:"created_utc_timestamps,omitempty"`
|
||||
InMemoryPercentages []int64 `protobuf:"varint,6,rep,packed,name=inMemory_percentages,json=inMemoryPercentages,proto3" json:"inMemory_percentages,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
// Contain error_code and reason
|
||||
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// All partition names for this collection
|
||||
PartitionNames []string `protobuf:"bytes,2,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"`
|
||||
// All partition ids for this collection
|
||||
PartitionIDs []int64 `protobuf:"varint,3,rep,packed,name=partitionIDs,proto3" json:"partitionIDs,omitempty"`
|
||||
// All hybrid timestamps
|
||||
CreatedTimestamps []uint64 `protobuf:"varint,4,rep,packed,name=created_timestamps,json=createdTimestamps,proto3" json:"created_timestamps,omitempty"`
|
||||
// All utc timestamps calculated by created_timestamps
|
||||
CreatedUtcTimestamps []uint64 `protobuf:"varint,5,rep,packed,name=created_utc_timestamps,json=createdUtcTimestamps,proto3" json:"created_utc_timestamps,omitempty"`
|
||||
// Load percentage on querynode
|
||||
InMemoryPercentages []int64 `protobuf:"varint,6,rep,packed,name=inMemory_percentages,json=inMemoryPercentages,proto3" json:"inMemory_percentages,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ShowPartitionsResponse) Reset() { *m = ShowPartitionsResponse{} }
|
||||
|
|
Loading…
Reference in New Issue