Documentation ¶
Index ¶
- func ColumnShardingKeyGen(col string) func(row abstract.ChangeItem) string
- func GetShardIndexUserMapping(cfg model.ChSinkParams) map[string]int
- type ShardID
- type ShardMap
- type Sharder
- func CHSharder(cfg model.ChSinkParams, transferID string) Sharder
- func ConstSharder() Sharder
- func KeyGenHashHandler(keygen func(row abstract.ChangeItem) string, shardCnt int) Sharder
- func KeyGenUserMappingHandler(keygen func(row abstract.ChangeItem) string, mapping map[string]int, ...) Sharder
- func RoundRobinSharder(shardCnt int) Sharder
- type Shards
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColumnShardingKeyGen ¶
func ColumnShardingKeyGen(col string) func(row abstract.ChangeItem) string
func GetShardIndexUserMapping ¶
func GetShardIndexUserMapping(cfg model.ChSinkParams) map[string]int
Types ¶
type ShardMap ¶
func ShardsFromSinkParams ¶
type Sharder ¶
type Sharder func(row abstract.ChangeItem) ShardID
func ConstSharder ¶
func ConstSharder() Sharder
func KeyGenHashHandler ¶
func KeyGenHashHandler(keygen func(row abstract.ChangeItem) string, shardCnt int) Sharder
func RoundRobinSharder ¶
Click to show internal directories.
Click to hide internal directories.