Map<SqlSessionFactory, Set<ShardId>> sqlSessionFactoryShardIdMap,
ShardIdResolver shardIdResolver) {
List<Shard> list = Lists.newArrayList();
for (Map.Entry<SqlSessionFactory, Set<ShardId>> entry : sqlSessionFactoryShardIdMap
.entrySet()) {
Shard shard = new ShardImpl(entry.getValue(), entry.getKey());
list.add(shard);
}
return list;