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 Sharder
public int getShardForKey(ByteBuffer key)
getShardForKey
in interface Sharder
key
- The serialized key. (The ByteBuffer should be unmodified by the implementation)Copyright © 2015 Google. All rights reserved.