abstract class
Movie::Cluster::EntityPartitioner
- Movie::Cluster::EntityPartitioner
- Reference
- Object
Overview
Maps a logical entity key to a stable shard number. Implementations must return the same result in every process and across runtime restarts.
Direct Known Subclasses
Defined in:
movie/cluster/sharding/strategies.crInstance Method Summary
- #configuration_key : String
- #shard_for(entity_type : String, entity_id : String, shard_count : Int32) : Int32
Instance Method Detail
abstract
def shard_for(entity_type : String, entity_id : String, shard_count : Int32) : Int32
#