Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MinKey []byte // Min Key of the all regions MaxKey = []byte{255, 255, 255, 255, 255, 255, 255, 255} // Max Key of the all regions Threshold int64 = 256 * 1024 * 1024 // Threshold of the region size )
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { // GetRegionByKey gets region and leader peer by region key from cluster. GetRegionByKey(key []byte) (region.Region, error) // Split splits the region into two regions. Split() error // Merge merges two adjacent regions into one region. Merge() error }
Store is the interface of store.
Click to show internal directories.
Click to hide internal directories.