Documentation ¶
Index ¶
- Variables
- func GenerateKeys(size int) []string
- func GenerateSplitKey(start, end []byte) []byte
- func GenerateTableKey(tableID, rowID int64) []byte
- func GenerateTableKeys(tableCount, size int) []string
- func GenerateTiDBEncodedSplitKey(start, end []byte) ([]byte, error)
- func InitCaseConfig(StoreNum, RegionNum int, EnableTransferRegionCounter bool)
- func InitLogger(l string)
- type CaseConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.Logger
Logger is the global logger used for simulator.
Functions ¶
func GenerateKeys ¶
GenerateKeys generates ordered, unique strings.
func GenerateSplitKey ¶
GenerateSplitKey generate the split key.
func GenerateTableKey ¶
GenerateTableKey generates the table key according to the table ID and row ID.
func GenerateTableKeys ¶
GenerateTableKeys generates the table keys according to the table count and size.
func GenerateTiDBEncodedSplitKey ¶
GenerateTiDBEncodedSplitKey calculates the split key with start and end key, the keys are encoded according to the TiDB encoding rules.
func InitCaseConfig ¶
InitCaseConfig is to init caseConfigure
Types ¶
type CaseConfig ¶
CaseConfig is to save flags
var CaseConfigure *CaseConfig
CaseConfigure is an global instance for CaseConfig
Click to show internal directories.
Click to hide internal directories.