Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IDAllocator idAllocator
IDAllocator is used to alloc unique ID.
View Source
var Logger *zap.Logger
Logger is the global logger used for simulator.
Functions ¶
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 InitLogger ¶
func InitLogger(l, file string)
InitLogger initializes the Logger with -log level.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.