Class VirtualShardMd5Strategy
- java.lang.Object
-
- org.zalando.sprocwrapper.sharding.VirtualShardKeyStrategy
-
- org.zalando.sprocwrapper.sharding.VirtualShardMd5Strategy
-
public class VirtualShardMd5Strategy extends VirtualShardKeyStrategy
extract the last 3 bytes of the shard key's MD5 hash: the shard key must be either a string or a string list (the first list item is used in this case)- Author:
- jmussler, hjacobs
-
-
Constructor Summary
Constructors Constructor Description VirtualShardMd5Strategy()
-
-
-
Method Detail
-
getShardId
public int getShardId(Object[] objs)
- Overrides:
getShardIdin classVirtualShardKeyStrategy- Parameters:
objs- Key Objects- Returns:
- virtual shard id
-
-