软件包 org.tinygroup.dbrouter
的使用

使用 org.tinygroup.dbrouter 的软件包
org.tinygroup.dbrouter   
org.tinygroup.dbrouter.config   
org.tinygroup.dbrouter.context   
org.tinygroup.dbrouter.factory   
org.tinygroup.dbrouter.impl   
org.tinygroup.dbrouter.impl.keygenerator   
org.tinygroup.dbrouter.impl.partionrule   
org.tinygroup.dbrouter.impl.shardrule   
 

org.tinygroup.dbrouter 使用的 org.tinygroup.dbrouter 中的类
StatementProcessor
          用于对SQL进行特殊处理并进行结果合并等

比如sql语句是select count(*) from abc
则会到所有的shard执行,并对结果相加后返回

 

org.tinygroup.dbrouter.config 使用的 org.tinygroup.dbrouter 中的类
PartitionRule
          分区规则接口
规则参数在实现类中定义
RouterKeyGenerator
          分布式Key获取器
ShardRule
          分片规则
 

org.tinygroup.dbrouter.context 使用的 org.tinygroup.dbrouter 中的类
RouterManager
          集群管理器,用于对当前JVM中的数据库集群进行管理,并提供相关处理的接口
StatementProcessor
          用于对SQL进行特殊处理并进行结果合并等

比如sql语句是select count(*) from abc
则会到所有的shard执行,并对结果相加后返回

 

org.tinygroup.dbrouter.factory 使用的 org.tinygroup.dbrouter 中的类
RouterManager
          集群管理器,用于对当前JVM中的数据库集群进行管理,并提供相关处理的接口
 

org.tinygroup.dbrouter.impl 使用的 org.tinygroup.dbrouter 中的类
RouterManager
          集群管理器,用于对当前JVM中的数据库集群进行管理,并提供相关处理的接口
StatementProcessor
          用于对SQL进行特殊处理并进行结果合并等

比如sql语句是select count(*) from abc
则会到所有的shard执行,并对结果相加后返回

 

org.tinygroup.dbrouter.impl.keygenerator 使用的 org.tinygroup.dbrouter 中的类
RouterKeyGenerator
          分布式Key获取器
 

org.tinygroup.dbrouter.impl.partionrule 使用的 org.tinygroup.dbrouter 中的类
PartitionRule
          分区规则接口
规则参数在实现类中定义
 

org.tinygroup.dbrouter.impl.shardrule 使用的 org.tinygroup.dbrouter 中的类
ShardRule
          分片规则
 



Copyright © 2006–2015 TinyGroup. All rights reserved.