milvus/docs/developer_guides/chap09_data_service.md
GuoRentong 1abc69277b Update doc: service api
Signed-off-by: GuoRentong <rentong.guo@zilliz.com>
2020-12-29 18:02:44 +08:00

1.2 KiB

8. Data Service

8.1 Overview

8.2 API

type Client interface {
  AssignSegmentID(req AssignSegIDRequest) (AssignSegIDResponse, error)
  Flush(req FlushRequest) (error)
  GetInsertBinlogPaths(req InsertBinlogPathRequest) (InsertBinlogPathsResponse, error)
  GetInsertChannels(req InsertChannelRequest) ([]string, error)
  GetTimeTickChannel() (string, error)
  GetStatsChannel() (string, error)
}
  • AssignSegmentID
type SegIDRequest struct {
  Count uint32
  ChannelID string
	CollectionID UniqueID
  PartitionID UniqueID
}

type AssignSegIDRequest struct {
  PerChannelRequest []SegIDRequest
}

type SegIDAssignment struct {
  SegID UniqueID
  ChannelID string
  Count uint32
	CollectionID UniqueID
  PartitionID UniqueID
  ExpireTime Timestamp
}

type AssignSegIDResponse struct {
  PerChannelResponse []SegIDAssignment
}
  • Flush
type FlushRequest struct {
  DbID UniqueID
  CollectionID UniqueID
}
  • GetInsertBinlogPaths
type InsertBinlogPathRequest struct {
  segmentID UniqueID
}

type InsertBinlogPathsResponse struct {
  FieldIdxToPaths map[int32][]string
}
  • GetInsertChannels
type InsertChannelRequest struct {
  DbID UniqueID
  CollectionID UniqueID
}