C# 클래스 Hydra.Core.Sharding.JumpSharding

Jump Consistent Hash implementation for shard picker
상속: ISharding
파일 보기 프로젝트 열기: Amazebytes/Hydra 1 사용 예제들

공개 메소드들

메소드 설명
GetShard ( String key, Int32 buckets ) : Int32

Get computed shard index

비공개 메소드들

메소드 설명
JumpConsistentHash ( System.UInt64 key, Int32 buckets ) : Int32

메소드 상세

GetShard() 공개 메소드

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