mirror of https://github.com/milvus-io/milvus.git
[skip ci] Refine index service developer guide (#11914)
Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>pull/11920/head
parent
7c85b54311
commit
c6ad464bc5
|
@ -12,15 +12,22 @@ type IndexCoord interface {
|
|||
TimeTickProvider
|
||||
|
||||
// BuildIndex receives requests from RootCoordinator to build an index.
|
||||
// Index building is asynchronous, so when an index building request comes, an IndexBuildID is assigned to the task and
|
||||
// the task is recorded in Meta. The background process assignTaskLoop will find this task and assign it to IndexNode for
|
||||
// execution.
|
||||
BuildIndex(ctx context.Context, req *indexpb.BuildIndexRequest) (*indexpb.BuildIndexResponse, error)
|
||||
|
||||
// DropIndex deletes indexes based on IndexID. One IndexID corresponds to the index of an entire column. A column is
|
||||
// divided into many segments, and each segment corresponds to an IndexBuildID. IndexCoord uses IndexBuildID to record
|
||||
// index tasks. Therefore, when DropIndex is called, delete all tasks corresponding to IndexBuildID corresponding to IndexID.
|
||||
DropIndex(ctx context.Context, req *indexpb.DropIndexRequest) (*commonpb.Status, error)
|
||||
|
||||
// GetIndexStates gets the index states of the IndexBuildIDs in the request from RootCoordinator.
|
||||
GetIndexStates(ctx context.Context, req *indexpb.GetIndexStatesRequest) (*indexpb.GetIndexStatesResponse, error)
|
||||
|
||||
// GetIndexFilePaths gets the index files of the IndexBuildIDs in the request from RootCoordinator.
|
||||
GetIndexFilePaths(ctx context.Context, req *indexpb.GetIndexFilePathsRequest) (*indexpb.GetIndexFilePathsResponse, error)
|
||||
|
||||
// GetMetrics gets the metrics about IndexCoord.
|
||||
GetMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue