Documentation ¶
Overview ¶
Copyright 2022 PingCAP, Inc. Licensed under Apache-2.0.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitPoint ¶
func SplitPoint( ctx context.Context, iter *splitHelperIterator, client split.SplitClient, splitF splitFunc, ) (err error)
SplitPoint selects ranges overlapped with each region, and calls `splitF` to split the region
Types ¶
type LogSplitHelper ¶
type LogSplitHelper struct {
// contains filtered or unexported fields
}
func NewLogSplitHelper ¶
func NewLogSplitHelper(rules map[int64]*restoreutils.RewriteRules, client split.SplitClient, splitSize uint64, splitKeys int64) *LogSplitHelper
func (*LogSplitHelper) Merge ¶
func (helper *LogSplitHelper) Merge(file *backuppb.DataFileInfo)
type SplitHelper ¶
type SplitHelper struct {
// contains filtered or unexported fields
}
SplitHelper represents a set of valued ranges, which doesn't overlap and union of them all is the full key space.
func NewSplitHelper ¶
func NewSplitHelper() *SplitHelper
NewSplitHelper creates a set of a subset of spans, with the full key space as initial status
func (*SplitHelper) Merge ¶
func (f *SplitHelper) Merge(val Valued)
func (*SplitHelper) Traverse ¶
func (f *SplitHelper) Traverse(m func(Valued) bool)
traverse the items in ascend order
Click to show internal directories.
Click to hide internal directories.