mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
Co-authored-by: kejiang ke.jiang@zilliz.com Co-authored-by: yun.zhang yun.zhang@zilliz.com Signed-off-by: yun.zhang <yun.zhang@zilliz.com>
26 lines
560 B
Go
26 lines
560 B
Go
package model
|
|
|
|
import "github.com/milvus-io/milvus/internal/proto/commonpb"
|
|
|
|
type Segment struct {
|
|
SegmentID int64
|
|
PartitionID int64
|
|
NumRows int64
|
|
MemSize int64
|
|
DmChannel string
|
|
CompactionFrom []int64
|
|
CreatedByCompaction bool
|
|
SegmentState commonpb.SegmentState
|
|
IndexInfos []*SegmentIndex
|
|
ReplicaIds []int64
|
|
NodeIds []int64
|
|
}
|
|
|
|
type SegmentIndex struct {
|
|
Segment
|
|
EnableIndex bool
|
|
BuildID int64
|
|
IndexSize uint64
|
|
IndexFilePaths []string
|
|
}
|