public class HashingSharder extends Object implements Sharder
| Constructor and Description |
|---|
HashingSharder(int numShards) |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumShards() |
int |
getShardForKey(ByteBuffer key) |
public int getNumShards()
getNumShards in interface Sharderpublic int getShardForKey(ByteBuffer key)
getShardForKey in interface Sharderkey - The serialized key. (The ByteBuffer should be unmodified by the implementation)Copyright © 2015 Google. All rights reserved.