[skip ci]Add comment for SetRowCount (#9394)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/9412/head
sunby 2021-10-07 17:54:12 +08:00 committed by GitHub
parent 82ff4563b3
commit cc794354b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -186,6 +186,7 @@ func (s *SegmentInfo) ShadowClone(opts ...SegmentInfoOption) *SegmentInfo {
// SegmentInfoOption is the option to set fields in segment info
type SegmentInfoOption func(segment *SegmentInfo)
// SetRowCount is the option to set row count for segment info
func SetRowCount(rowCount int64) SegmentInfoOption {
return func(segment *SegmentInfo) {
segment.NumOfRows = rowCount