class MultiTenantShardChoser implements ShardChoser (View source)

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

Methods

string|int
pickShard($distributionValue, PoolingShardConnection $conn)

Picks a shard for the given distribution value.

Details

string|int pickShard($distributionValue, PoolingShardConnection $conn)

Picks a shard for the given distribution value.

Parameters

$distributionValue
PoolingShardConnection $conn

Return Value

string|int