From 4a6a71020e67d09ba47dff9abcb9dcfd65f6f295 Mon Sep 17 00:00:00 2001 From: congqixia Date: Sat, 9 Oct 2021 18:36:04 +0800 Subject: [PATCH] [skip ci] Add Comment for types - Datacoord GetCollectionStatistics (#9581) Signed-off-by: Congqi Xia --- internal/types/types.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/internal/types/types.go b/internal/types/types.go index 404a49b70..4843702e3 100644 --- a/internal/types/types.go +++ b/internal/types/types.go @@ -142,6 +142,15 @@ type DataCoord interface { // GetSegmentInfoChannel DEPRECATED // legacy api to get SegmentInfo Channel name GetSegmentInfoChannel(ctx context.Context) (*milvuspb.StringResponse, error) + + // GetCollectionStatistics requests collection statistics + // + // ctx is the context to control request deadline and cancellation + // req contains the collection id to query + // + // response struct `GetCollectionStatisticsResponse` contains the key-value list fields returning related data + // only row count for now + // error is returned only when some communication issue occurs GetCollectionStatistics(ctx context.Context, req *datapb.GetCollectionStatisticsRequest) (*datapb.GetCollectionStatisticsResponse, error) GetPartitionStatistics(ctx context.Context, req *datapb.GetPartitionStatisticsRequest) (*datapb.GetPartitionStatisticsResponse, error) GetSegmentInfo(ctx context.Context, req *datapb.GetSegmentInfoRequest) (*datapb.GetSegmentInfoResponse, error) -- GitLab