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

integer
pickShard(string $distributionValue, PoolingShardConnection $conn)

Picks a shard for the given distribution value.

Details

integer pickShard(string $distributionValue, PoolingShardConnection $conn)

Picks a shard for the given distribution value.

Parameters

string $distributionValue
PoolingShardConnection $conn

Return Value

integer