ShardChoser
in
Given a distribution value this shard-choser strategy will pick the shard to connect to for retrieving rows with the distribution value.
Tags
Table of Contents
- pickShard() : int
- Picks a shard for the given distribution value.
Methods
pickShard()
Picks a shard for the given distribution value.
public
pickShard(string $distributionValue, PoolingShardConnection $conn) : int
Parameters
- $distributionValue : string
- $conn : PoolingShardConnection