[skip ci]Add comment for GetCollectionStatistics (#10393)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
sunby 2021-10-21 21:55:40 +08:00 committed by GitHub
parent dcd6c1f2b2
commit e98dee296f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,6 +356,14 @@ func (c *Client) GetInsertBinlogPaths(ctx context.Context, req *datapb.GetInsert
return ret.(*datapb.GetInsertBinlogPathsResponse), err
}
// 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
func (c *Client) GetCollectionStatistics(ctx context.Context, req *datapb.GetCollectionStatisticsRequest) (*datapb.GetCollectionStatisticsResponse, error) {
ret, err := c.recall(func() (interface{}, error) {
client, err := c.getGrpcClient()