接口 org.tinygroup.dbrouter.ShardRule
的使用

使用 ShardRule 的软件包
org.tinygroup.dbrouter.config   
org.tinygroup.dbrouter.impl.shardrule   
 

org.tinygroup.dbrouter.configShardRule 的使用
 

返回变量类型为 ShardRule 的类型的 org.tinygroup.dbrouter.config 中的方法
 List<ShardRule> Shard.getShardRules()
           
 

类型变量类型为 ShardRuleorg.tinygroup.dbrouter.config 中的方法参数
 void Shard.setShardRules(List<ShardRule> shardRules)
           
 

org.tinygroup.dbrouter.impl.shardruleShardRule 的使用
 

实现 ShardRuleorg.tinygroup.dbrouter.impl.shardrule 中的类
 class ShardRuleByFieldValue
          Created by luoguo on 14-1-22.
 class ShardRuleByIdAbstract
          Created by luoguo on 13-12-17.
 class ShardRuleByIdDifferentSchema
          通过ID进行分片 Created by luoguo on 13-12-15.
 class ShardRuleByIdSameSchema
          Created by luoguo on 13-12-15.
 class ShardRuleBySectionAndHashDifferentSchema
          区间 shard+ hash
 class ShardRuleBySectionDifferentSchema
          区间 shard
 



Copyright © 2006–2015 TinyGroup. All rights reserved.