C# Class Hydra.Core.Sharding.JumpSharding

Jump Consistent Hash implementation for shard picker
Inheritance: ISharding
Afficher le fichier Open project: Amazebytes/Hydra Class Usage Examples

Méthodes publiques

Méthode Description
GetShard ( String key, Int32 buckets ) : Int32

Get computed shard index

Private Methods

Méthode Description
JumpConsistentHash ( System.UInt64 key, Int32 buckets ) : Int32

Method Details

GetShard() public méthode

Get computed shard index
public GetShard ( String key, Int32 buckets ) : Int32
key String Sharded identifier
buckets System.Int32 Total number of shards
Résultat System.Int32