Documentation
¶
Index ¶
Constants ¶
View Source
const ( Active int32 = iota Closing Closed )
Variables ¶
View Source
var (
EmptySegmentIt = new(SegmentIt)
)
Functions ¶
func NewSegmentIt ¶
func NewSegmentIt(ss *Snapshot) dbi.ISegmentIt
func NewSegmentLinkIt ¶
func NewSegmentLinkIt(ss *Snapshot) dbi.ISegmentIt
Types ¶
type Block ¶
func (*Block) GetSegmentID ¶
func (*Block) GetTableID ¶
func (*Block) Prefetch ¶
func (blk *Block) Prefetch() dbi.IBatchReader
type CloseSegmentItCB ¶
type CloseSegmentItCB func(dbi.ISegmentIt)
type Segment ¶
func (*Segment) GetTableID ¶
type SegmentIt ¶
type SegmentIt struct {
OnCloseCB CloseSegmentItCB
Snapshot *Snapshot
Pos int
}
type SegmentLinkIt ¶
type SegmentLinkIt struct {
OnCloseCB CloseSegmentItCB
Snapshot *Snapshot
Cursor iface.ISegment
}
func (*SegmentLinkIt) Close ¶
func (it *SegmentLinkIt) Close() error
func (*SegmentLinkIt) GetHandle ¶
func (it *SegmentLinkIt) GetHandle() dbi.ISegment
func (*SegmentLinkIt) Next ¶
func (it *SegmentLinkIt) Next()
func (*SegmentLinkIt) Valid ¶
func (it *SegmentLinkIt) Valid() bool
type Snapshot ¶
type Snapshot struct {
TableData iface.ITableData
Attr []int
Ids []uint64
ScanAll bool
State int32
ActiveIters int32
// contains filtered or unexported fields
}
func NewEmptySnapshot ¶
func NewEmptySnapshot() *Snapshot
func NewLinkAllSnapshot ¶
func NewLinkAllSnapshot(attrs []int, td iface.ITableData) *Snapshot
func NewSnapshot ¶
func NewSnapshot(ids []uint64, attrs []int, td iface.ITableData) *Snapshot
func (*Snapshot) NewIt ¶
func (ss *Snapshot) NewIt() dbi.ISegmentIt
func (*Snapshot) SegmentIds ¶
Click to show internal directories.
Click to hide internal directories.