milvus/docs/developer_guides/chap03_index_builder.md
GuoRentong e8ec0424d8 Update doc: service api
Signed-off-by: GuoRentong <rentong.guo@zilliz.com>
2020-12-27 09:05:24 +08:00

615 B

8. Index Service

8.1 Overview

8.2 API

enum IndexStatus {
    NONE = 0;
    UNISSUED = 1;
    INPROGRESS = 2;
    FINISHED = 3;
}
type IndexDescription struct {
	ID                UniqueID
	Status            IndexStatus
	EnqueueTime       time.Time
	ScheduleTime      time.Time
	BuildCompleteTime time.Time
}


type Client interface {
  BuildIndex(dataPaths []string, typeParams map[string]string, indexParams map[string]string) (UniqueID, error)
	DescribeIndex(indexID UniqueID) (*IndexDescription, error)
	GetIndexFilePaths(indexID UniqueID) ([]string, error)
}