IShardMapper
in
Implementation of logic of mapping shard keys to shards.
Tags
Table of Contents
Methods
- getShardForKey() : int
- Get the shard number for a given shard key and total shard count
Methods
getShardForKey()
Get the shard number for a given shard key and total shard count
public
getShardForKey(int $key, int $count) : int
Parameters
- $key : int
- $count : int