Documentation ¶
Index ¶
- func ZapRanges(ranges []Range) zapcore.Field
- type Range
- type RangeTree
- func (rangeTree *RangeTree) Find(rg *Range) *Range
- func (rangeTree *RangeTree) GetIncompleteRange(startKey, endKey []byte) []Range
- func (rangeTree *RangeTree) GetSortedRanges() []Range
- func (rangeTree *RangeTree) InsertRange(rg Range) *Range
- func (rangeTree *RangeTree) Put(startKey, endKey []byte, files []*backup.File)
- func (rangeTree *RangeTree) Update(rg Range)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Range ¶
Range represents a backup response.
type RangeTree ¶
RangeTree is sorted tree for Ranges. All the ranges it stored do not overlap.
func (*RangeTree) Find ¶
Find is a helper function to find an item that contains the range start key.
func (*RangeTree) GetIncompleteRange ¶
GetIncompleteRange returns missing range covered by startKey and endKey.
func (*RangeTree) GetSortedRanges ¶
GetSortedRanges collects and returns sorted ranges.
func (*RangeTree) InsertRange ¶
InsertRange inserts ranges into the range tree. It returns a non-nil range if there are soe overlapped ranges.
Click to show internal directories.
Click to hide internal directories.