mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
6a136c1a76
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
51 lines
1.0 KiB
Protocol Buffer
51 lines
1.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package masterpb;
|
|
|
|
option go_package="github.com/zilliztech/milvus-distributed/internal/proto/master";
|
|
|
|
import "message.proto";
|
|
|
|
message Collection {
|
|
uint64 id=1;
|
|
string name=2;
|
|
milvus.grpc.Schema schema=3;
|
|
uint64 create_time=4;
|
|
repeated uint64 segment_ids=5;
|
|
repeated string partition_tags=6;
|
|
repeated milvus.grpc.IndexParam indexes=7;
|
|
}
|
|
|
|
enum SegmentStatus {
|
|
OPENED = 0;
|
|
CLOSED = 1;
|
|
INDEXING = 2;
|
|
INDEXED = 3;
|
|
}
|
|
|
|
message Segment {
|
|
uint64 segment_id=1;
|
|
uint64 collection_id =2;
|
|
string partition_tag=3;
|
|
int32 channel_start=4;
|
|
int32 channel_end=5;
|
|
uint64 open_timestamp=6;
|
|
uint64 close_timestamp=7;
|
|
string collection_name=8;
|
|
SegmentStatus status=9;
|
|
int64 rows=10;
|
|
}
|
|
|
|
message SegmentStat {
|
|
uint64 segment_id=1;
|
|
uint64 memory_size=2;
|
|
float memory_rate=3;
|
|
SegmentStatus status=4;
|
|
int64 rows=5;
|
|
}
|
|
|
|
service Master {
|
|
rpc CreateCollection(milvus.grpc.Mapping) returns (milvus.grpc.Status){}
|
|
rpc CreateIndex(milvus.grpc.IndexParam) returns (milvus.grpc.Status) {}
|
|
}
|