mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-29 23:15:28 +08:00
40 lines
679 B
Go
40 lines
679 B
Go
package reader
|
|
|
|
import "C"
|
|
|
|
type Segment struct {
|
|
Id string
|
|
Status int
|
|
SegmentCloseTime uint64
|
|
}
|
|
|
|
func (s *Segment) GetRowCount() int64 {
|
|
// TODO: C type to go type
|
|
return C.GetRowCount(s)
|
|
}
|
|
|
|
func (s *Segment) GetStatus() int {
|
|
// TODO: C type to go type
|
|
return C.GetStatus(s)
|
|
}
|
|
|
|
func (s *Segment) GetMaxTimestamp() uint64 {
|
|
// TODO: C type to go type
|
|
return C.GetMaxTimestamp(s)
|
|
}
|
|
|
|
func (s *Segment) GetMinTimestamp() uint64 {
|
|
// TODO: C type to go type
|
|
return C.GetMinTimestamp(s)
|
|
}
|
|
|
|
func (s *Segment) GetDeletedCount() uint64 {
|
|
// TODO: C type to go type
|
|
return C.GetDeletedCount(s)
|
|
}
|
|
|
|
func (s *Segment) Close() {
|
|
// TODO: C type to go type
|
|
C.CloseSegment(s)
|
|
}
|