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, file 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
func InitLogger ¶
func InitLogger(l, file string)
InitLogger initializes the Logger with -log level.
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.