milvus/docs/developer_guides/chap03_index_builder.md
quicksilver a6690dbc99 Fix syntax error: Bad fd number
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
2021-01-11 15:25:19 +08:00

921 B

8. Index Service

8.1 Overview

8.2 API

type Client interface {
  BuildIndex(req BuildIndexRequest) (BuildIndexResponse, error)
	DescribeIndex(indexID UniqueID) (IndexDescription, error)
	GetIndexFilePaths(indexID UniqueID) (IndexFilePaths, error)
}
  • BuildIndex
type BuildIndexRequest struct {
  DataPaths []string
  TypeParams map[string]string
  IndexParams map[string]string
}

type BuildIndexResponse struct {
  IndexID UniqueID
}
  • DescribeIndex
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
}
  • GetIndexFilePaths
type IndexFilePaths struct {
  FilePaths []string
}