milvus/reader/segment.go
bigsheeper af1f67b9d2 Add collection and segment
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2020-08-25 15:45:19 +08:00

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)
}