package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
EmptyRewriteRule make a new, empty rewrite rule.
EmptyRewriteRule make a map of new, empty rewrite rules.
GetIndexIDMap creates a map maping old indexID to new indexID.
GetPartitionIDMap creates a map maping old physical ID to new physical ID.
GetRewriteRawKeys rewrites rules to the encoded key.
GetRewriteRawKeys rewrites rules to the raw key.
GetRewriteRuleOfTable returns a rewrite rule from t_{oldID} to t_{newID}.
GetRewriteRules returns the rewrite rule of the new table and the old table.
GetRewriteTableID gets rewrite table id by the rewrite rule and original table id.
GetTableIDMap creates a map maping old tableID to new tableID.
MergeAndRewriteFileRanges returns ranges of the files are merged based on splitSizeBytes and splitKeyCount.
ValidateFileRewriteRule uses rewrite rules to validate the ranges of a file.
# Structs
MergeRangesStat holds statistics for the MergeRanges.
RewriteRules contains rules for rewriting keys of tables.
# Interfaces
AppliedFile has two types for now.