milvus/internal/proto/index_builder.proto
zhenshan.cao 3f6e926aef Refactor indexbuilder
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
2020-12-13 06:48:05 +08:00

74 lines
1.6 KiB
Protocol Buffer

syntax = "proto3";
package milvus.proto.service;
option go_package="github.com/zilliztech/milvus-distributed/internal/proto/indexbuilderpb";
import "common.proto";
enum IndexStatus {
NONE = 0;
UNISSUED = 1;
INPROGRESS = 2;
FINISHED = 3;
}
message BuildIndexRequest {
repeated string data_paths=2;
repeated common.KeyValuePair type_params = 3;
repeated common.KeyValuePair index_params = 4;
}
message BuildIndexResponse {
common.Status status = 1;
int64 indexID = 2;
}
message GetIndexFilePathsRequest {
int64 indexID = 1;
}
message GetIndexFilePathsResponse {
common.Status status = 1;
int64 indexID = 2;
repeated string index_file_paths=3;
}
message DescribleIndexRequest {
int64 indexID = 1;
}
message DescribleIndexResponse {
common.Status status = 1;
IndexStatus index_status =2;
int64 indexID = 3;
int64 enque_time = 4;
int64 schedule_time = 5;
int64 build_complete_time = 6;
}
message IndexMeta {
IndexStatus status =1;
int64 indexID = 2;
int64 enque_time = 3;
int64 schedule_time = 4;
int64 build_complete_time = 5;
BuildIndexRequest req = 6;
repeated string index_file_paths=7;
}
service IndexBuildService {
/**
* @brief This method is used to create collection
*
* @param CollectionSchema, use to provide collection information to be created.
*
* @return Status
*/
rpc BuildIndex(BuildIndexRequest) returns (BuildIndexResponse){}
rpc DescribeIndex(DescribleIndexRequest) returns (DescribleIndexResponse){}
rpc GetIndexFilePaths(GetIndexFilePathsRequest) returns (GetIndexFilePathsResponse){}
}