mirror of https://github.com/milvus-io/milvus.git
[skip ci]Add comment for SetRowCount (#9394)
Signed-off-by: sunby <bingyi.sun@zilliz.com>pull/9412/head
parent
82ff4563b3
commit
cc794354b5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue