class MultiTenantShardChoser implements ShardChoser (View source)

The MultiTenant Shard choser assumes that the distribution value directly maps to the shard id.

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