ShardChoser
interface ShardChoser (View source)
Given a distribution value this shard-choser strategy will pick the shard to connect to for retrieving rows with the distribution value.
Methods
string|int
pickShard($distributionValue, PoolingShardConnection $conn)
Picks a shard for the given distribution value.
Details
at line 20
string|int
pickShard($distributionValue, PoolingShardConnection $conn)
Picks a shard for the given distribution value.