public interface Sharder extends Serializable
Modifier and Type | Method and Description |
---|---|
int |
getNumShards() |
int |
getShardForKey(ByteBuffer key) |
int getNumShards()
int getShardForKey(ByteBuffer key)
key
- The serialized key. (The ByteBuffer should be unmodified by the implementation)Copyright © 2015 Google. All rights reserved.