func (s Segment) Flushed() bool {
	return s.State == common.SegmentState_Flushed
}
Flushed indicates segment is flushed
package entity
import "github.com/milvus-io/milvus-sdk-go/v2/internal/proto/common"
type Segment struct {
	ID           int64
	CollectionID int64
	ParititionID int64
	IndexID      int64
	NumRows int64
	State   common.SegmentState
}