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 ¶ added in v3.1.0
GenerateKeys generates ordered, unique strings.
func GenerateSplitKey ¶ added in v3.1.0
GenerateSplitKey generate the split key.
func GenerateTableKey ¶ added in v3.1.0
GenerateTableKey generates the table key according to the table ID and row ID.
func GenerateTableKeys ¶ added in v3.1.0
GenerateTableKeys generates the table keys according to the table count and size.
func GenerateTiDBEncodedSplitKey ¶ added in v3.1.0
GenerateTiDBEncodedSplitKey calculates the split key with start and end key, the keys are encoded according to the TiDB encoding rules.
func InitCaseConfig ¶ added in v3.1.0
InitCaseConfig is to init caseConfigure
Types ¶
type CaseConfig ¶ added in v3.1.0
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.