new Index
Creates a new ShardIndex
according to the passed shard index
The passed shard index value must be less than the total number of shards specified.
Both passed values must not be negative.
Return
a new instance of the ShardIndex
Parameters
index Value
the value of the shard index, zero-based
of Total
the total number of shard