Revert "made getShardInfo(byte[]) public"

This reverts commit 0801b01ccb.
This commit is contained in:
Dmytro
2011-03-21 14:58:29 +00:00
parent 0801b01ccb
commit dc89193635

View File

@@ -70,7 +70,7 @@ public class Sharded<R, S extends ShardInfo<R>> {
return resources.get(getShardInfo(key));
}
public S getShardInfo(byte[] key) {
private S getShardInfo(byte[] key) {
SortedMap<Long, S> tail = nodes.tailMap(algo.hash(key));
if (tail.size() == 0) {
return nodes.get(nodes.firstKey());