Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Shardingsphere
提交
29b18f26
Shardingsphere
项目概览
apache
/
Shardingsphere
通知
56
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Shardingsphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
29b18f26
编写于
2月 03, 2019
作者:
T
terrymanu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
for #1853, refactor spi package
上级
4b069190
变更
69
隐藏空白更改
内联
并排
Showing
69 changed file
with
86 addition
and
73 deletion
+86
-73
sharding-core/src/main/java/org/apache/shardingsphere/api/algorithm/masterslave/MasterSlaveLoadBalanceAlgorithmFactory.java
...m/masterslave/MasterSlaveLoadBalanceAlgorithmFactory.java
+3
-2
sharding-core/src/main/java/org/apache/shardingsphere/api/algorithm/masterslave/impl/RandomMasterSlaveLoadBalanceAlgorithm.java
...sterslave/impl/RandomMasterSlaveLoadBalanceAlgorithm.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/api/algorithm/masterslave/impl/RoundRobinMasterSlaveLoadBalanceAlgorithm.java
...slave/impl/RoundRobinMasterSlaveLoadBalanceAlgorithm.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/api/config/masterslave/MasterSlaveRuleConfiguration.java
.../api/config/masterslave/MasterSlaveRuleConfiguration.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/core/encrypt/ShardingEncryptorFactory.java
...shardingsphere/core/encrypt/ShardingEncryptorFactory.java
+3
-2
sharding-core/src/main/java/org/apache/shardingsphere/core/executor/sql/execute/SQLExecuteCallback.java
...gsphere/core/executor/sql/execute/SQLExecuteCallback.java
+2
-2
sharding-core/src/main/java/org/apache/shardingsphere/core/keygen/ShardingKeyGeneratorFactory.java
...ardingsphere/core/keygen/ShardingKeyGeneratorFactory.java
+3
-2
sharding-core/src/main/java/org/apache/shardingsphere/core/keygen/impl/SnowflakeShardingKeyGenerator.java
...phere/core/keygen/impl/SnowflakeShardingKeyGenerator.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/core/keygen/impl/UUIDShardingKeyGenerator.java
...dingsphere/core/keygen/impl/UUIDShardingKeyGenerator.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/core/rewrite/SQLRewriteEngine.java
.../apache/shardingsphere/core/rewrite/SQLRewriteEngine.java
+2
-2
sharding-core/src/main/java/org/apache/shardingsphere/core/routing/router/sharding/ParsingSQLRouter.java
...sphere/core/routing/router/sharding/ParsingSQLRouter.java
+2
-2
sharding-core/src/main/java/org/apache/shardingsphere/core/routing/strategy/ShardingEncryptorStrategy.java
...here/core/routing/strategy/ShardingEncryptorStrategy.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/core/rule/MasterSlaveRule.java
.../org/apache/shardingsphere/core/rule/MasterSlaveRule.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/core/rule/ShardingRule.java
...ava/org/apache/shardingsphere/core/rule/ShardingRule.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/core/rule/TableRule.java
...n/java/org/apache/shardingsphere/core/rule/TableRule.java
+2
-2
sharding-core/src/main/java/org/apache/shardingsphere/core/spi/NewInstanceServiceLoader.java
...che/shardingsphere/core/spi/NewInstanceServiceLoader.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/core/spi/algorithm/BaseAlgorithmFactory.java
...ardingsphere/core/spi/algorithm/BaseAlgorithmFactory.java
+3
-2
sharding-core/src/main/java/org/apache/shardingsphere/core/spi/hook/SPIParsingHook.java
...g/apache/shardingsphere/core/spi/hook/SPIParsingHook.java
+3
-2
sharding-core/src/main/java/org/apache/shardingsphere/core/spi/hook/SPIRewriteHook.java
...g/apache/shardingsphere/core/spi/hook/SPIRewriteHook.java
+3
-2
sharding-core/src/main/java/org/apache/shardingsphere/core/spi/hook/SPIRootInvokeHook.java
...pache/shardingsphere/core/spi/hook/SPIRootInvokeHook.java
+3
-2
sharding-core/src/main/java/org/apache/shardingsphere/core/spi/hook/SPISQLExecutionHook.java
...che/shardingsphere/core/spi/hook/SPISQLExecutionHook.java
+3
-2
sharding-core/src/main/java/org/apache/shardingsphere/core/yaml/swapper/impl/MasterSlaveRuleConfigurationYamlSwapper.java
...swapper/impl/MasterSlaveRuleConfigurationYamlSwapper.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/spi/algorithm/encrypt/ShardingEncryptor.java
...ardingsphere/spi/algorithm/encrypt/ShardingEncryptor.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/spi/algorithm/encrypt/ShardingQueryAssistedEncryptor.java
...spi/algorithm/encrypt/ShardingQueryAssistedEncryptor.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/spi/algorithm/keygen/ShardingKeyGenerator.java
...dingsphere/spi/algorithm/keygen/ShardingKeyGenerator.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/spi/algorithm/masterslave/MasterSlaveLoadBalanceAlgorithm.java
...lgorithm/masterslave/MasterSlaveLoadBalanceAlgorithm.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/spi/hook/ParsingHook.java
.../java/org/apache/shardingsphere/spi/hook/ParsingHook.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/spi/hook/RewriteHook.java
.../java/org/apache/shardingsphere/spi/hook/RewriteHook.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/spi/hook/RootInvokeHook.java
...va/org/apache/shardingsphere/spi/hook/RootInvokeHook.java
+1
-1
sharding-core/src/main/java/org/apache/shardingsphere/spi/hook/SQLExecutionHook.java
.../org/apache/shardingsphere/spi/hook/SQLExecutionHook.java
+1
-1
sharding-core/src/main/resources/META-INF/services/org.apache.shardingsphere.spi.algorithm.keygen.ShardingKeyGenerator
....shardingsphere.spi.algorithm.keygen.ShardingKeyGenerator
+0
-0
sharding-core/src/main/resources/META-INF/services/org.apache.shardingsphere.spi.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
...spi.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
+0
-0
sharding-core/src/test/java/org/apache/shardingsphere/api/config/masterslave/MasterSlaveRuleConfigurationTest.java
.../config/masterslave/MasterSlaveRuleConfigurationTest.java
+1
-1
sharding-core/src/test/java/org/apache/shardingsphere/core/encrypt/fixture/TestShardingEncryptor.java
...ingsphere/core/encrypt/fixture/TestShardingEncryptor.java
+1
-1
sharding-core/src/test/java/org/apache/shardingsphere/core/keygen/fixture/IncrementShardingKeyGenerator.java
...re/core/keygen/fixture/IncrementShardingKeyGenerator.java
+1
-1
sharding-core/src/test/java/org/apache/shardingsphere/core/routing/strategy/ShardingEncryptorStrategyTest.java
.../core/routing/strategy/ShardingEncryptorStrategyTest.java
+1
-1
sharding-core/src/test/java/org/apache/shardingsphere/spi/NewInstanceServiceLoaderTest.java
...ache/shardingsphere/spi/NewInstanceServiceLoaderTest.java
+2
-1
sharding-core/src/test/java/org/apache/shardingsphere/spi/fixture/ParsingHookFixture.java
...apache/shardingsphere/spi/fixture/ParsingHookFixture.java
+1
-1
sharding-core/src/test/java/org/apache/shardingsphere/spi/fixture/RewriteHookFixture.java
...apache/shardingsphere/spi/fixture/RewriteHookFixture.java
+1
-1
sharding-core/src/test/java/org/apache/shardingsphere/spi/fixture/RootInvokeHookFixture.java
...che/shardingsphere/spi/fixture/RootInvokeHookFixture.java
+1
-1
sharding-core/src/test/java/org/apache/shardingsphere/spi/fixture/SQLExecutionHookFixture.java
...e/shardingsphere/spi/fixture/SQLExecutionHookFixture.java
+1
-1
sharding-core/src/test/java/org/apache/shardingsphere/spi/hook/executor/SPISQLExecutionHookTest.java
...dingsphere/spi/hook/executor/SPISQLExecutionHookTest.java
+1
-0
sharding-core/src/test/java/org/apache/shardingsphere/spi/hook/parsing/SPIParsingHookTest.java
...e/shardingsphere/spi/hook/parsing/SPIParsingHookTest.java
+1
-0
sharding-core/src/test/java/org/apache/shardingsphere/spi/hook/rewrite/SPIRewriteHookTest.java
...e/shardingsphere/spi/hook/rewrite/SPIRewriteHookTest.java
+1
-0
sharding-core/src/test/java/org/apache/shardingsphere/spi/hook/root/SPIRootInvokeHookTest.java
...e/shardingsphere/spi/hook/root/SPIRootInvokeHookTest.java
+1
-0
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.algorithm.encrypt.ShardingEncryptor
...he.shardingsphere.spi.algorithm.encrypt.ShardingEncryptor
+0
-0
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.algorithm.keygen.ShardingKeyGenerator
....shardingsphere.spi.algorithm.keygen.ShardingKeyGenerator
+0
-0
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.hook.ParsingHook
...F/services/org.apache.shardingsphere.spi.hook.ParsingHook
+0
-0
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.hook.RewriteHook
...F/services/org.apache.shardingsphere.spi.hook.RewriteHook
+0
-0
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.hook.RootInvokeHook
...ervices/org.apache.shardingsphere.spi.hook.RootInvokeHook
+0
-0
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.hook.SQLExecutionHook
...vices/org.apache.shardingsphere.spi.hook.SQLExecutionHook
+0
-0
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/adapter/AbstractConnectionAdapter.java
.../shardingjdbc/jdbc/adapter/AbstractConnectionAdapter.java
+2
-2
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/dbtest/fixture/ConstantShardingKeyGenerator.java
...ngsphere/dbtest/fixture/ConstantShardingKeyGenerator.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/shardingjdbc/fixture/IncrementShardingKeyGenerator.java
...e/shardingjdbc/fixture/IncrementShardingKeyGenerator.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.algorithm.keygen.ShardingKeyGenerator
....shardingsphere.spi.algorithm.keygen.ShardingKeyGenerator
+0
-0
sharding-jdbc/sharding-jdbc-orchestration/src/test/java/org/apache/shardingsphere/shardingjdbc/orchestration/api/yaml/fixture/DecrementShardingKeyGenerator.java
...ation/api/yaml/fixture/DecrementShardingKeyGenerator.java
+1
-1
sharding-jdbc/sharding-jdbc-orchestration/src/test/java/org/apache/shardingsphere/shardingjdbc/orchestration/api/yaml/fixture/IncrementShardingKeyGenerator.java
...ation/api/yaml/fixture/IncrementShardingKeyGenerator.java
+1
-1
sharding-jdbc/sharding-jdbc-orchestration/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.algorithm.keygen.ShardingKeyGenerator
....shardingsphere.spi.algorithm.keygen.ShardingKeyGenerator
+0
-0
sharding-opentracing/src/main/java/org/apache/shardingsphere/opentracing/hook/OpenTracingParsingHook.java
...ardingsphere/opentracing/hook/OpenTracingParsingHook.java
+1
-1
sharding-opentracing/src/main/java/org/apache/shardingsphere/opentracing/hook/OpenTracingRootInvokeHook.java
...ingsphere/opentracing/hook/OpenTracingRootInvokeHook.java
+1
-1
sharding-opentracing/src/main/java/org/apache/shardingsphere/opentracing/hook/OpenTracingSQLExecutionHook.java
...gsphere/opentracing/hook/OpenTracingSQLExecutionHook.java
+1
-1
sharding-opentracing/src/main/resources/META-INF/services/org.apache.shardingsphere.spi.hook.ParsingHook
...F/services/org.apache.shardingsphere.spi.hook.ParsingHook
+0
-0
sharding-opentracing/src/main/resources/META-INF/services/org.apache.shardingsphere.spi.hook.RootInvokeHook
...ervices/org.apache.shardingsphere.spi.hook.RootInvokeHook
+0
-0
sharding-opentracing/src/main/resources/META-INF/services/org.apache.shardingsphere.spi.hook.SQLExecutionHook
...vices/org.apache.shardingsphere.spi.hook.SQLExecutionHook
+0
-0
sharding-opentracing/src/test/java/org/apache/shardingsphere/opentracing/hook/OpenTracingParsingHookTest.java
...ngsphere/opentracing/hook/OpenTracingParsingHookTest.java
+3
-3
sharding-opentracing/src/test/java/org/apache/shardingsphere/opentracing/hook/OpenTracingRootInvokeHookTest.java
...phere/opentracing/hook/OpenTracingRootInvokeHookTest.java
+3
-3
sharding-opentracing/src/test/java/org/apache/shardingsphere/opentracing/hook/OpenTracingSQLExecutionHookTest.java
...ere/opentracing/hook/OpenTracingSQLExecutionHookTest.java
+3
-3
sharding-proxy/src/main/java/org/apache/shardingsphere/shardingproxy/frontend/mysql/MySQLCommandExecutor.java
...re/shardingproxy/frontend/mysql/MySQLCommandExecutor.java
+2
-2
sharding-proxy/src/main/java/org/apache/shardingsphere/shardingproxy/frontend/postgresql/PostgreSQLCommandExecutor.java
...gproxy/frontend/postgresql/PostgreSQLCommandExecutor.java
+2
-2
未找到文件。
sharding-core/src/main/java/org/apache/shardingsphere/api/algorithm/masterslave/MasterSlaveLoadBalanceAlgorithmFactory.java
浏览文件 @
29b18f26
...
...
@@ -17,8 +17,9 @@
package
org.apache.shardingsphere.api.algorithm.masterslave
;
import
org.apache.shardingsphere.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.spi.algorithm.BaseAlgorithmFactory
;
import
org.apache.shardingsphere.core.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.core.spi.algorithm.BaseAlgorithmFactory
;
import
org.apache.shardingsphere.spi.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
;
/**
* Master-slave database load-balance algorithm factory.
...
...
sharding-core/src/main/java/org/apache/shardingsphere/api/algorithm/masterslave/impl/RandomMasterSlaveLoadBalanceAlgorithm.java
浏览文件 @
29b18f26
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.api.algorithm.masterslave.impl;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.apache.shardingsphere.
a
pi.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
;
import
org.apache.shardingsphere.
s
pi.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
;
import
java.util.List
;
import
java.util.Properties
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/api/algorithm/masterslave/impl/RoundRobinMasterSlaveLoadBalanceAlgorithm.java
浏览文件 @
29b18f26
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.api.algorithm.masterslave.impl;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.apache.shardingsphere.
a
pi.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
;
import
org.apache.shardingsphere.
s
pi.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
;
import
java.util.List
;
import
java.util.Properties
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/api/config/masterslave/MasterSlaveRuleConfiguration.java
浏览文件 @
29b18f26
...
...
@@ -20,8 +20,8 @@ package org.apache.shardingsphere.api.config.masterslave;
import
com.google.common.base.Preconditions
;
import
com.google.common.base.Strings
;
import
lombok.Getter
;
import
org.apache.shardingsphere.api.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
;
import
org.apache.shardingsphere.api.config.RuleConfiguration
;
import
org.apache.shardingsphere.spi.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
;
import
java.util.Collection
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/core/encrypt/ShardingEncryptorFactory.java
浏览文件 @
29b18f26
...
...
@@ -17,8 +17,9 @@
package
org.apache.shardingsphere.core.encrypt
;
import
org.apache.shardingsphere.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.spi.algorithm.BaseAlgorithmFactory
;
import
org.apache.shardingsphere.core.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.core.spi.algorithm.BaseAlgorithmFactory
;
import
org.apache.shardingsphere.spi.algorithm.encrypt.ShardingEncryptor
;
/**
* Sharding encryptor factory.
...
...
sharding-core/src/main/java/org/apache/shardingsphere/core/executor/sql/execute/SQLExecuteCallback.java
浏览文件 @
29b18f26
...
...
@@ -24,8 +24,8 @@ import org.apache.shardingsphere.core.executor.StatementExecuteUnit;
import
org.apache.shardingsphere.core.executor.sql.execute.threadlocal.ExecutorExceptionHandler
;
import
org.apache.shardingsphere.core.metadata.datasource.DataSourceMetaData
;
import
org.apache.shardingsphere.core.metadata.datasource.DataSourceMetaDataFactory
;
import
org.apache.shardingsphere.
spi.hook.executor
.SPISQLExecutionHook
;
import
org.apache.shardingsphere.spi.hook.
executor.
SQLExecutionHook
;
import
org.apache.shardingsphere.
core.spi.hook
.SPISQLExecutionHook
;
import
org.apache.shardingsphere.spi.hook.SQLExecutionHook
;
import
java.sql.SQLException
;
import
java.util.Collection
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/core/keygen/ShardingKeyGeneratorFactory.java
浏览文件 @
29b18f26
...
...
@@ -17,8 +17,9 @@
package
org.apache.shardingsphere.core.keygen
;
import
org.apache.shardingsphere.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.spi.algorithm.BaseAlgorithmFactory
;
import
org.apache.shardingsphere.core.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.core.spi.algorithm.BaseAlgorithmFactory
;
import
org.apache.shardingsphere.spi.algorithm.keygen.ShardingKeyGenerator
;
/**
* Key generator factory.
...
...
sharding-core/src/main/java/org/apache/shardingsphere/core/keygen/impl/SnowflakeShardingKeyGenerator.java
浏览文件 @
29b18f26
...
...
@@ -21,8 +21,8 @@ import com.google.common.base.Preconditions;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.SneakyThrows
;
import
org.apache.shardingsphere.core.keygen.ShardingKeyGenerator
;
import
org.apache.shardingsphere.core.keygen.TimeService
;
import
org.apache.shardingsphere.spi.algorithm.keygen.ShardingKeyGenerator
;
import
java.util.Calendar
;
import
java.util.Properties
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/core/keygen/impl/UUIDShardingKeyGenerator.java
浏览文件 @
29b18f26
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.core.keygen.impl;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.apache.shardingsphere.
core
.keygen.ShardingKeyGenerator
;
import
org.apache.shardingsphere.
spi.algorithm
.keygen.ShardingKeyGenerator
;
import
java.util.Properties
;
import
java.util.UUID
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/core/rewrite/SQLRewriteEngine.java
浏览文件 @
29b18f26
...
...
@@ -52,9 +52,9 @@ import org.apache.shardingsphere.core.routing.type.RoutingTable;
import
org.apache.shardingsphere.core.routing.type.TableUnit
;
import
org.apache.shardingsphere.core.rule.BindingTableRule
;
import
org.apache.shardingsphere.core.rule.ShardingRule
;
import
org.apache.shardingsphere.core.spi.hook.SPIRewriteHook
;
import
org.apache.shardingsphere.core.util.SQLUtil
;
import
org.apache.shardingsphere.spi.hook.rewrite.RewriteHook
;
import
org.apache.shardingsphere.spi.hook.rewrite.SPIRewriteHook
;
import
org.apache.shardingsphere.spi.hook.RewriteHook
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/core/routing/router/sharding/ParsingSQLRouter.java
浏览文件 @
29b18f26
...
...
@@ -47,9 +47,9 @@ import org.apache.shardingsphere.core.routing.type.TableUnit;
import
org.apache.shardingsphere.core.rule.BindingTableRule
;
import
org.apache.shardingsphere.core.rule.ShardingRule
;
import
org.apache.shardingsphere.core.rule.TableRule
;
import
org.apache.shardingsphere.core.spi.hook.SPIParsingHook
;
import
org.apache.shardingsphere.core.util.SQLLogger
;
import
org.apache.shardingsphere.spi.hook.parsing.ParsingHook
;
import
org.apache.shardingsphere.spi.hook.parsing.SPIParsingHook
;
import
org.apache.shardingsphere.spi.hook.ParsingHook
;
import
java.util.LinkedList
;
import
java.util.List
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/core/routing/strategy/ShardingEncryptorStrategy.java
浏览文件 @
29b18f26
...
...
@@ -18,8 +18,8 @@
package
org.apache.shardingsphere.core.routing.strategy
;
import
lombok.Getter
;
import
org.apache.shardingsphere.core.encrypt.ShardingEncryptor
;
import
org.apache.shardingsphere.core.exception.ShardingConfigurationException
;
import
org.apache.shardingsphere.spi.algorithm.encrypt.ShardingEncryptor
;
import
java.util.List
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/core/rule/MasterSlaveRule.java
浏览文件 @
29b18f26
...
...
@@ -18,9 +18,9 @@
package
org.apache.shardingsphere.core.rule
;
import
lombok.Getter
;
import
org.apache.shardingsphere.api.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
;
import
org.apache.shardingsphere.api.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithmFactory
;
import
org.apache.shardingsphere.api.config.masterslave.MasterSlaveRuleConfiguration
;
import
org.apache.shardingsphere.spi.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
;
import
java.util.Collection
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/core/rule/ShardingRule.java
浏览文件 @
29b18f26
...
...
@@ -29,13 +29,13 @@ import org.apache.shardingsphere.api.config.sharding.TableRuleConfiguration;
import
org.apache.shardingsphere.api.config.sharding.strategy.ShardingStrategyConfiguration
;
import
org.apache.shardingsphere.core.exception.ShardingConfigurationException
;
import
org.apache.shardingsphere.core.exception.ShardingException
;
import
org.apache.shardingsphere.core.keygen.ShardingKeyGenerator
;
import
org.apache.shardingsphere.core.keygen.ShardingKeyGeneratorFactory
;
import
org.apache.shardingsphere.core.parsing.parser.context.condition.Column
;
import
org.apache.shardingsphere.core.routing.strategy.ShardingStrategy
;
import
org.apache.shardingsphere.core.routing.strategy.ShardingStrategyFactory
;
import
org.apache.shardingsphere.core.routing.strategy.hint.HintShardingStrategy
;
import
org.apache.shardingsphere.core.routing.strategy.none.NoneShardingStrategy
;
import
org.apache.shardingsphere.spi.algorithm.keygen.ShardingKeyGenerator
;
import
java.util.ArrayList
;
import
java.util.Collection
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/core/rule/TableRule.java
浏览文件 @
29b18f26
...
...
@@ -26,15 +26,15 @@ import lombok.ToString;
import
org.apache.shardingsphere.api.config.encryptor.EncryptorConfiguration
;
import
org.apache.shardingsphere.api.config.sharding.KeyGeneratorConfiguration
;
import
org.apache.shardingsphere.api.config.sharding.TableRuleConfiguration
;
import
org.apache.shardingsphere.core.encrypt.ShardingEncryptor
;
import
org.apache.shardingsphere.core.encrypt.ShardingEncryptorFactory
;
import
org.apache.shardingsphere.core.exception.ShardingException
;
import
org.apache.shardingsphere.core.keygen.ShardingKeyGenerator
;
import
org.apache.shardingsphere.core.keygen.ShardingKeyGeneratorFactory
;
import
org.apache.shardingsphere.core.routing.strategy.ShardingEncryptorStrategy
;
import
org.apache.shardingsphere.core.routing.strategy.ShardingStrategy
;
import
org.apache.shardingsphere.core.routing.strategy.ShardingStrategyFactory
;
import
org.apache.shardingsphere.core.util.InlineExpressionParser
;
import
org.apache.shardingsphere.spi.algorithm.encrypt.ShardingEncryptor
;
import
org.apache.shardingsphere.spi.algorithm.keygen.ShardingKeyGenerator
;
import
java.util.Collection
;
import
java.util.Collections
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/spi/NewInstanceServiceLoader.java
→
sharding-core/src/main/java/org/apache/shardingsphere/
core/
spi/NewInstanceServiceLoader.java
浏览文件 @
29b18f26
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.spi
;
package
org.apache.shardingsphere.
core.
spi
;
import
lombok.AccessLevel
;
import
lombok.NoArgsConstructor
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/spi/algorithm/BaseAlgorithmFactory.java
→
sharding-core/src/main/java/org/apache/shardingsphere/
core/
spi/algorithm/BaseAlgorithmFactory.java
浏览文件 @
29b18f26
...
...
@@ -15,13 +15,14 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.spi.algorithm
;
package
org.apache.shardingsphere.
core.
spi.algorithm
;
import
com.google.common.base.Predicate
;
import
com.google.common.collect.Collections2
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.shardingsphere.core.exception.ShardingConfigurationException
;
import
org.apache.shardingsphere.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.core.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.spi.algorithm.BaseAlgorithm
;
import
java.util.Collection
;
import
java.util.Properties
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/
spi/hook/parsing
/SPIParsingHook.java
→
sharding-core/src/main/java/org/apache/shardingsphere/
core/spi/hook
/SPIParsingHook.java
浏览文件 @
29b18f26
...
...
@@ -15,11 +15,12 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.
spi.hook.parsing
;
package
org.apache.shardingsphere.
core.spi.hook
;
import
org.apache.shardingsphere.core.metadata.table.ShardingTableMetaData
;
import
org.apache.shardingsphere.core.parsing.parser.sql.SQLStatement
;
import
org.apache.shardingsphere.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.core.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.spi.hook.ParsingHook
;
import
java.util.Collection
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/
spi/hook/rewrite
/SPIRewriteHook.java
→
sharding-core/src/main/java/org/apache/shardingsphere/
core/spi/hook
/SPIRewriteHook.java
浏览文件 @
29b18f26
...
...
@@ -15,11 +15,12 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.
spi.hook.rewrite
;
package
org.apache.shardingsphere.
core.spi.hook
;
import
org.apache.shardingsphere.core.routing.SQLUnit
;
import
org.apache.shardingsphere.core.routing.type.TableUnit
;
import
org.apache.shardingsphere.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.core.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.spi.hook.RewriteHook
;
import
java.util.Collection
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/
spi/hook/root
/SPIRootInvokeHook.java
→
sharding-core/src/main/java/org/apache/shardingsphere/
core/spi/hook
/SPIRootInvokeHook.java
浏览文件 @
29b18f26
...
...
@@ -15,9 +15,10 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.
spi.hook.root
;
package
org.apache.shardingsphere.
core.spi.hook
;
import
org.apache.shardingsphere.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.core.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.spi.hook.RootInvokeHook
;
import
java.util.Collection
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/
spi/hook/executor
/SPISQLExecutionHook.java
→
sharding-core/src/main/java/org/apache/shardingsphere/
core/spi/hook
/SPISQLExecutionHook.java
浏览文件 @
29b18f26
...
...
@@ -15,11 +15,12 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.
spi.hook.executor
;
package
org.apache.shardingsphere.
core.spi.hook
;
import
org.apache.shardingsphere.core.metadata.datasource.DataSourceMetaData
;
import
org.apache.shardingsphere.core.routing.RouteUnit
;
import
org.apache.shardingsphere.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.core.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.spi.hook.SQLExecutionHook
;
import
java.util.Collection
;
import
java.util.Map
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/core/yaml/swapper/impl/MasterSlaveRuleConfigurationYamlSwapper.java
浏览文件 @
29b18f26
...
...
@@ -18,11 +18,11 @@
package
org.apache.shardingsphere.core.yaml.swapper.impl
;
import
com.google.common.base.Strings
;
import
org.apache.shardingsphere.api.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
;
import
org.apache.shardingsphere.api.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithmFactory
;
import
org.apache.shardingsphere.api.config.masterslave.MasterSlaveRuleConfiguration
;
import
org.apache.shardingsphere.core.yaml.config.masterslave.YamlMasterSlaveRuleConfiguration
;
import
org.apache.shardingsphere.core.yaml.swapper.YamlSwapper
;
import
org.apache.shardingsphere.spi.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
;
import
java.util.Properties
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/
core
/encrypt/ShardingEncryptor.java
→
sharding-core/src/main/java/org/apache/shardingsphere/
spi/algorithm
/encrypt/ShardingEncryptor.java
浏览文件 @
29b18f26
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.
core
.encrypt
;
package
org.apache.shardingsphere.
spi.algorithm
.encrypt
;
import
org.apache.shardingsphere.spi.algorithm.BaseAlgorithm
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/
core
/encrypt/ShardingQueryAssistedEncryptor.java
→
sharding-core/src/main/java/org/apache/shardingsphere/
spi/algorithm
/encrypt/ShardingQueryAssistedEncryptor.java
浏览文件 @
29b18f26
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.
core
.encrypt
;
package
org.apache.shardingsphere.
spi.algorithm
.encrypt
;
/**
* Sharding query assisted encryptor.
...
...
sharding-core/src/main/java/org/apache/shardingsphere/
core
/keygen/ShardingKeyGenerator.java
→
sharding-core/src/main/java/org/apache/shardingsphere/
spi/algorithm
/keygen/ShardingKeyGenerator.java
浏览文件 @
29b18f26
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.
core
.keygen
;
package
org.apache.shardingsphere.
spi.algorithm
.keygen
;
import
org.apache.shardingsphere.spi.algorithm.BaseAlgorithm
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/
a
pi/algorithm/masterslave/MasterSlaveLoadBalanceAlgorithm.java
→
sharding-core/src/main/java/org/apache/shardingsphere/
s
pi/algorithm/masterslave/MasterSlaveLoadBalanceAlgorithm.java
浏览文件 @
29b18f26
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.
a
pi.algorithm.masterslave
;
package
org.apache.shardingsphere.
s
pi.algorithm.masterslave
;
import
org.apache.shardingsphere.spi.algorithm.BaseAlgorithm
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/spi/hook/
parsing/
ParsingHook.java
→
sharding-core/src/main/java/org/apache/shardingsphere/spi/hook/ParsingHook.java
浏览文件 @
29b18f26
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.spi.hook
.parsing
;
package
org.apache.shardingsphere.spi.hook
;
import
org.apache.shardingsphere.core.metadata.table.ShardingTableMetaData
;
import
org.apache.shardingsphere.core.parsing.parser.sql.SQLStatement
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/spi/hook/
rewrite/
RewriteHook.java
→
sharding-core/src/main/java/org/apache/shardingsphere/spi/hook/RewriteHook.java
浏览文件 @
29b18f26
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.spi.hook
.rewrite
;
package
org.apache.shardingsphere.spi.hook
;
import
org.apache.shardingsphere.core.routing.SQLUnit
;
import
org.apache.shardingsphere.core.routing.type.TableUnit
;
...
...
sharding-core/src/main/java/org/apache/shardingsphere/spi/hook/
root/
RootInvokeHook.java
→
sharding-core/src/main/java/org/apache/shardingsphere/spi/hook/RootInvokeHook.java
浏览文件 @
29b18f26
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.spi.hook
.root
;
package
org.apache.shardingsphere.spi.hook
;
/**
* Root invoke hook.
...
...
sharding-core/src/main/java/org/apache/shardingsphere/spi/hook/
executor/
SQLExecutionHook.java
→
sharding-core/src/main/java/org/apache/shardingsphere/spi/hook/SQLExecutionHook.java
浏览文件 @
29b18f26
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.spi.hook
.executor
;
package
org.apache.shardingsphere.spi.hook
;
import
org.apache.shardingsphere.core.metadata.datasource.DataSourceMetaData
;
import
org.apache.shardingsphere.core.routing.RouteUnit
;
...
...
sharding-core/src/main/resources/META-INF/services/org.apache.shardingsphere.
core
.keygen.ShardingKeyGenerator
→
sharding-core/src/main/resources/META-INF/services/org.apache.shardingsphere.
spi.algorithm
.keygen.ShardingKeyGenerator
浏览文件 @
29b18f26
文件已移动
sharding-core/src/main/resources/META-INF/services/org.apache.shardingsphere.
a
pi.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
→
sharding-core/src/main/resources/META-INF/services/org.apache.shardingsphere.
s
pi.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
浏览文件 @
29b18f26
文件已移动
sharding-core/src/test/java/org/apache/shardingsphere/api/config/masterslave/MasterSlaveRuleConfigurationTest.java
浏览文件 @
29b18f26
...
...
@@ -17,8 +17,8 @@
package
org.apache.shardingsphere.api.config.masterslave
;
import
org.apache.shardingsphere.api.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
;
import
org.apache.shardingsphere.api.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithmFactory
;
import
org.apache.shardingsphere.spi.algorithm.masterslave.MasterSlaveLoadBalanceAlgorithm
;
import
org.hamcrest.CoreMatchers
;
import
org.junit.Test
;
...
...
sharding-core/src/test/java/org/apache/shardingsphere/core/encrypt/fixture/TestShardingEncryptor.java
浏览文件 @
29b18f26
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.core.encrypt.fixture;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.apache.shardingsphere.
core
.encrypt.ShardingEncryptor
;
import
org.apache.shardingsphere.
spi.algorithm
.encrypt.ShardingEncryptor
;
import
java.util.Properties
;
...
...
sharding-core/src/test/java/org/apache/shardingsphere/core/keygen/fixture/IncrementShardingKeyGenerator.java
浏览文件 @
29b18f26
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.core.keygen.fixture;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.apache.shardingsphere.
core
.keygen.ShardingKeyGenerator
;
import
org.apache.shardingsphere.
spi.algorithm
.keygen.ShardingKeyGenerator
;
import
java.util.Properties
;
import
java.util.concurrent.atomic.AtomicInteger
;
...
...
sharding-core/src/test/java/org/apache/shardingsphere/core/routing/strategy/ShardingEncryptorStrategyTest.java
浏览文件 @
29b18f26
...
...
@@ -17,8 +17,8 @@
package
org.apache.shardingsphere.core.routing.strategy
;
import
org.apache.shardingsphere.core.encrypt.ShardingEncryptor
;
import
org.apache.shardingsphere.core.exception.ShardingConfigurationException
;
import
org.apache.shardingsphere.spi.algorithm.encrypt.ShardingEncryptor
;
import
org.junit.Test
;
import
java.util.Arrays
;
...
...
sharding-core/src/test/java/org/apache/shardingsphere/spi/NewInstanceServiceLoaderTest.java
浏览文件 @
29b18f26
...
...
@@ -17,7 +17,8 @@
package
org.apache.shardingsphere.spi
;
import
org.apache.shardingsphere.spi.hook.parsing.ParsingHook
;
import
org.apache.shardingsphere.core.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.spi.hook.ParsingHook
;
import
org.junit.Test
;
import
java.util.Collection
;
...
...
sharding-core/src/test/java/org/apache/shardingsphere/spi/fixture/ParsingHookFixture.java
浏览文件 @
29b18f26
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.spi.fixture;
import
org.apache.shardingsphere.core.metadata.table.ShardingTableMetaData
;
import
org.apache.shardingsphere.core.parsing.parser.sql.SQLStatement
;
import
org.apache.shardingsphere.spi.hook.
parsing.
ParsingHook
;
import
org.apache.shardingsphere.spi.hook.ParsingHook
;
import
java.util.Collection
;
import
java.util.LinkedList
;
...
...
sharding-core/src/test/java/org/apache/shardingsphere/spi/fixture/RewriteHookFixture.java
浏览文件 @
29b18f26
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.spi.fixture;
import
org.apache.shardingsphere.core.routing.SQLUnit
;
import
org.apache.shardingsphere.core.routing.type.TableUnit
;
import
org.apache.shardingsphere.spi.hook.
rewrite.
RewriteHook
;
import
org.apache.shardingsphere.spi.hook.RewriteHook
;
import
java.util.Collection
;
import
java.util.LinkedList
;
...
...
sharding-core/src/test/java/org/apache/shardingsphere/spi/fixture/RootInvokeHookFixture.java
浏览文件 @
29b18f26
...
...
@@ -17,7 +17,7 @@
package
org.apache.shardingsphere.spi.fixture
;
import
org.apache.shardingsphere.spi.hook.
root.
RootInvokeHook
;
import
org.apache.shardingsphere.spi.hook.RootInvokeHook
;
import
java.util.Collection
;
import
java.util.LinkedList
;
...
...
sharding-core/src/test/java/org/apache/shardingsphere/spi/fixture/SQLExecutionHookFixture.java
浏览文件 @
29b18f26
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.spi.fixture;
import
org.apache.shardingsphere.core.metadata.datasource.DataSourceMetaData
;
import
org.apache.shardingsphere.core.routing.RouteUnit
;
import
org.apache.shardingsphere.spi.hook.
executor.
SQLExecutionHook
;
import
org.apache.shardingsphere.spi.hook.SQLExecutionHook
;
import
java.util.Collection
;
import
java.util.LinkedList
;
...
...
sharding-core/src/test/java/org/apache/shardingsphere/spi/hook/executor/SPISQLExecutionHookTest.java
浏览文件 @
29b18f26
...
...
@@ -17,6 +17,7 @@
package
org.apache.shardingsphere.spi.hook.executor
;
import
org.apache.shardingsphere.core.spi.hook.SPISQLExecutionHook
;
import
org.apache.shardingsphere.spi.fixture.SQLExecutionHookFixture
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
sharding-core/src/test/java/org/apache/shardingsphere/spi/hook/parsing/SPIParsingHookTest.java
浏览文件 @
29b18f26
...
...
@@ -17,6 +17,7 @@
package
org.apache.shardingsphere.spi.hook.parsing
;
import
org.apache.shardingsphere.core.spi.hook.SPIParsingHook
;
import
org.apache.shardingsphere.spi.fixture.ParsingHookFixture
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
sharding-core/src/test/java/org/apache/shardingsphere/spi/hook/rewrite/SPIRewriteHookTest.java
浏览文件 @
29b18f26
...
...
@@ -17,6 +17,7 @@
package
org.apache.shardingsphere.spi.hook.rewrite
;
import
org.apache.shardingsphere.core.spi.hook.SPIRewriteHook
;
import
org.apache.shardingsphere.spi.fixture.RewriteHookFixture
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
sharding-core/src/test/java/org/apache/shardingsphere/spi/hook/root/SPIRootInvokeHookTest.java
浏览文件 @
29b18f26
...
...
@@ -17,6 +17,7 @@
package
org.apache.shardingsphere.spi.hook.root
;
import
org.apache.shardingsphere.core.spi.hook.SPIRootInvokeHook
;
import
org.apache.shardingsphere.spi.fixture.RootInvokeHookFixture
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.
core
.encrypt.ShardingEncryptor
→
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.
spi.algorithm
.encrypt.ShardingEncryptor
浏览文件 @
29b18f26
文件已移动
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.
core
.keygen.ShardingKeyGenerator
→
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.
spi.algorithm
.keygen.ShardingKeyGenerator
浏览文件 @
29b18f26
文件已移动
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.hook.
parsing.
ParsingHook
→
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.hook.ParsingHook
浏览文件 @
29b18f26
文件已移动
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.hook.
rewrite.
RewriteHook
→
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.hook.RewriteHook
浏览文件 @
29b18f26
文件已移动
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.hook.
root.
RootInvokeHook
→
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.hook.RootInvokeHook
浏览文件 @
29b18f26
文件已移动
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.hook.
executor.
SQLExecutionHook
→
sharding-core/src/test/resources/META-INF/services/org.apache.shardingsphere.spi.hook.SQLExecutionHook
浏览文件 @
29b18f26
文件已移动
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/adapter/AbstractConnectionAdapter.java
浏览文件 @
29b18f26
...
...
@@ -24,11 +24,11 @@ import lombok.Getter;
import
org.apache.shardingsphere.core.constant.ConnectionMode
;
import
org.apache.shardingsphere.core.hint.HintManagerHolder
;
import
org.apache.shardingsphere.core.routing.router.masterslave.MasterVisitedManager
;
import
org.apache.shardingsphere.core.spi.hook.SPIRootInvokeHook
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.adapter.executor.ForceExecuteCallback
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.adapter.executor.ForceExecuteTemplate
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.unsupported.AbstractUnsupportedOperationConnection
;
import
org.apache.shardingsphere.spi.hook.root.RootInvokeHook
;
import
org.apache.shardingsphere.spi.hook.root.SPIRootInvokeHook
;
import
org.apache.shardingsphere.spi.hook.RootInvokeHook
;
import
org.apache.shardingsphere.transaction.ShardingTransactionManagerEngine
;
import
org.apache.shardingsphere.transaction.core.TransactionType
;
import
org.apache.shardingsphere.transaction.core.TransactionTypeHolder
;
...
...
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/dbtest/fixture/ConstantShardingKeyGenerator.java
浏览文件 @
29b18f26
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.dbtest.fixture;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.apache.shardingsphere.
core
.keygen.ShardingKeyGenerator
;
import
org.apache.shardingsphere.
spi.algorithm
.keygen.ShardingKeyGenerator
;
import
java.util.Properties
;
...
...
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/shardingjdbc/fixture/IncrementShardingKeyGenerator.java
浏览文件 @
29b18f26
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.shardingjdbc.fixture;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.apache.shardingsphere.
core
.keygen.ShardingKeyGenerator
;
import
org.apache.shardingsphere.
spi.algorithm
.keygen.ShardingKeyGenerator
;
import
java.util.Properties
;
import
java.util.concurrent.atomic.AtomicInteger
;
...
...
sharding-jdbc/sharding-jdbc-core/src/test/resources/META-INF/services/org.apache.shardingsphere.
core
.keygen.ShardingKeyGenerator
→
sharding-jdbc/sharding-jdbc-core/src/test/resources/META-INF/services/org.apache.shardingsphere.
spi.algorithm
.keygen.ShardingKeyGenerator
浏览文件 @
29b18f26
文件已移动
sharding-jdbc/sharding-jdbc-orchestration/src/test/java/org/apache/shardingsphere/shardingjdbc/orchestration/api/yaml/fixture/DecrementShardingKeyGenerator.java
浏览文件 @
29b18f26
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.shardingjdbc.orchestration.api.yaml.fixture;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.apache.shardingsphere.
core
.keygen.ShardingKeyGenerator
;
import
org.apache.shardingsphere.
spi.algorithm
.keygen.ShardingKeyGenerator
;
import
java.util.Properties
;
import
java.util.concurrent.atomic.AtomicInteger
;
...
...
sharding-jdbc/sharding-jdbc-orchestration/src/test/java/org/apache/shardingsphere/shardingjdbc/orchestration/api/yaml/fixture/IncrementShardingKeyGenerator.java
浏览文件 @
29b18f26
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.shardingjdbc.orchestration.api.yaml.fixture;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.apache.shardingsphere.
core
.keygen.ShardingKeyGenerator
;
import
org.apache.shardingsphere.
spi.algorithm
.keygen.ShardingKeyGenerator
;
import
java.util.Properties
;
import
java.util.concurrent.atomic.AtomicInteger
;
...
...
sharding-jdbc/sharding-jdbc-orchestration/src/test/resources/META-INF/services/org.apache.shardingsphere.
core
.keygen.ShardingKeyGenerator
→
sharding-jdbc/sharding-jdbc-orchestration/src/test/resources/META-INF/services/org.apache.shardingsphere.
spi.algorithm
.keygen.ShardingKeyGenerator
浏览文件 @
29b18f26
文件已移动
sharding-opentracing/src/main/java/org/apache/shardingsphere/opentracing/hook/OpenTracingParsingHook.java
浏览文件 @
29b18f26
...
...
@@ -23,7 +23,7 @@ import org.apache.shardingsphere.core.metadata.table.ShardingTableMetaData;
import
org.apache.shardingsphere.core.parsing.parser.sql.SQLStatement
;
import
org.apache.shardingsphere.opentracing.ShardingTracer
;
import
org.apache.shardingsphere.opentracing.constant.ShardingTags
;
import
org.apache.shardingsphere.spi.hook.
parsing.
ParsingHook
;
import
org.apache.shardingsphere.spi.hook.ParsingHook
;
/**
* Open tracing parsing hook.
...
...
sharding-opentracing/src/main/java/org/apache/shardingsphere/opentracing/hook/OpenTracingRootInvokeHook.java
浏览文件 @
29b18f26
...
...
@@ -22,7 +22,7 @@ import io.opentracing.tag.Tags;
import
org.apache.shardingsphere.core.executor.ShardingExecuteDataMap
;
import
org.apache.shardingsphere.opentracing.ShardingTracer
;
import
org.apache.shardingsphere.opentracing.constant.ShardingTags
;
import
org.apache.shardingsphere.spi.hook.
root.
RootInvokeHook
;
import
org.apache.shardingsphere.spi.hook.RootInvokeHook
;
/**
* Open tracing root invoke hook.
...
...
sharding-opentracing/src/main/java/org/apache/shardingsphere/opentracing/hook/OpenTracingSQLExecutionHook.java
浏览文件 @
29b18f26
...
...
@@ -25,7 +25,7 @@ import org.apache.shardingsphere.core.metadata.datasource.DataSourceMetaData;
import
org.apache.shardingsphere.core.routing.RouteUnit
;
import
org.apache.shardingsphere.opentracing.ShardingTracer
;
import
org.apache.shardingsphere.opentracing.constant.ShardingTags
;
import
org.apache.shardingsphere.spi.hook.
executor.
SQLExecutionHook
;
import
org.apache.shardingsphere.spi.hook.SQLExecutionHook
;
import
java.util.LinkedList
;
import
java.util.List
;
...
...
sharding-opentracing/src/main/resources/META-INF/services/org.apache.shardingsphere.spi.hook.
parsing.
ParsingHook
→
sharding-opentracing/src/main/resources/META-INF/services/org.apache.shardingsphere.spi.hook.ParsingHook
浏览文件 @
29b18f26
文件已移动
sharding-opentracing/src/main/resources/META-INF/services/org.apache.shardingsphere.spi.hook.
root.
RootInvokeHook
→
sharding-opentracing/src/main/resources/META-INF/services/org.apache.shardingsphere.spi.hook.RootInvokeHook
浏览文件 @
29b18f26
文件已移动
sharding-opentracing/src/main/resources/META-INF/services/org.apache.shardingsphere.spi.hook.
executor.
SQLExecutionHook
→
sharding-opentracing/src/main/resources/META-INF/services/org.apache.shardingsphere.spi.hook.SQLExecutionHook
浏览文件 @
29b18f26
文件已移动
sharding-opentracing/src/test/java/org/apache/shardingsphere/opentracing/hook/OpenTracingParsingHookTest.java
浏览文件 @
29b18f26
...
...
@@ -22,10 +22,10 @@ import io.opentracing.tag.Tags;
import
org.apache.shardingsphere.core.exception.ShardingException
;
import
org.apache.shardingsphere.core.metadata.table.ShardingTableMetaData
;
import
org.apache.shardingsphere.core.parsing.parser.sql.SQLStatement
;
import
org.apache.shardingsphere.core.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.core.spi.hook.SPIParsingHook
;
import
org.apache.shardingsphere.opentracing.constant.ShardingTags
;
import
org.apache.shardingsphere.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.spi.hook.parsing.ParsingHook
;
import
org.apache.shardingsphere.spi.hook.parsing.SPIParsingHook
;
import
org.apache.shardingsphere.spi.hook.ParsingHook
;
import
org.hamcrest.CoreMatchers
;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
...
...
sharding-opentracing/src/test/java/org/apache/shardingsphere/opentracing/hook/OpenTracingRootInvokeHookTest.java
浏览文件 @
29b18f26
...
...
@@ -18,9 +18,9 @@
package
org.apache.shardingsphere.opentracing.hook
;
import
org.apache.shardingsphere.core.executor.ShardingExecuteDataMap
;
import
org.apache.shardingsphere.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.
spi.hook.root.
RootInvokeHook
;
import
org.apache.shardingsphere.spi.hook.
root.SPI
RootInvokeHook
;
import
org.apache.shardingsphere.
core.
spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.
core.spi.hook.SPI
RootInvokeHook
;
import
org.apache.shardingsphere.spi.hook.RootInvokeHook
;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
...
...
sharding-opentracing/src/test/java/org/apache/shardingsphere/opentracing/hook/OpenTracingSQLExecutionHookTest.java
浏览文件 @
29b18f26
...
...
@@ -25,10 +25,10 @@ import org.apache.shardingsphere.core.executor.ShardingExecuteDataMap;
import
org.apache.shardingsphere.core.metadata.datasource.DataSourceMetaData
;
import
org.apache.shardingsphere.core.routing.RouteUnit
;
import
org.apache.shardingsphere.core.routing.SQLUnit
;
import
org.apache.shardingsphere.core.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.core.spi.hook.SPISQLExecutionHook
;
import
org.apache.shardingsphere.opentracing.constant.ShardingTags
;
import
org.apache.shardingsphere.spi.NewInstanceServiceLoader
;
import
org.apache.shardingsphere.spi.hook.executor.SPISQLExecutionHook
;
import
org.apache.shardingsphere.spi.hook.executor.SQLExecutionHook
;
import
org.apache.shardingsphere.spi.hook.SQLExecutionHook
;
import
org.hamcrest.CoreMatchers
;
import
org.junit.After
;
import
org.junit.Before
;
...
...
sharding-proxy/src/main/java/org/apache/shardingsphere/shardingproxy/frontend/mysql/MySQLCommandExecutor.java
浏览文件 @
29b18f26
...
...
@@ -22,6 +22,7 @@ import io.netty.buffer.ByteBuf;
import
io.netty.channel.ChannelHandlerContext
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.shardingsphere.core.constant.properties.ShardingPropertiesConstant
;
import
org.apache.shardingsphere.core.spi.hook.SPIRootInvokeHook
;
import
org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.connection.BackendConnection
;
import
org.apache.shardingsphere.shardingproxy.frontend.common.FrontendHandler
;
import
org.apache.shardingsphere.shardingproxy.runtime.GlobalRegistry
;
...
...
@@ -41,8 +42,7 @@ import org.apache.shardingsphere.shardingproxy.transport.mysql.packet.command.qu
import
org.apache.shardingsphere.shardingproxy.transport.mysql.packet.generic.MySQLEofPacket
;
import
org.apache.shardingsphere.shardingproxy.transport.mysql.packet.generic.MySQLErrPacket
;
import
org.apache.shardingsphere.shardingproxy.transport.mysql.packet.generic.MySQLOKPacket
;
import
org.apache.shardingsphere.spi.hook.root.RootInvokeHook
;
import
org.apache.shardingsphere.spi.hook.root.SPIRootInvokeHook
;
import
org.apache.shardingsphere.spi.hook.RootInvokeHook
;
import
java.sql.SQLException
;
...
...
sharding-proxy/src/main/java/org/apache/shardingsphere/shardingproxy/frontend/postgresql/PostgreSQLCommandExecutor.java
浏览文件 @
29b18f26
...
...
@@ -22,6 +22,7 @@ import io.netty.buffer.ByteBuf;
import
io.netty.channel.ChannelHandlerContext
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.shardingsphere.core.constant.properties.ShardingPropertiesConstant
;
import
org.apache.shardingsphere.core.spi.hook.SPIRootInvokeHook
;
import
org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.connection.BackendConnection
;
import
org.apache.shardingsphere.shardingproxy.frontend.common.FrontendHandler
;
import
org.apache.shardingsphere.shardingproxy.runtime.GlobalRegistry
;
...
...
@@ -39,8 +40,7 @@ import org.apache.shardingsphere.shardingproxy.transport.postgresql.packet.comma
import
org.apache.shardingsphere.shardingproxy.transport.postgresql.packet.generic.PostgreSQLCommandCompletePacket
;
import
org.apache.shardingsphere.shardingproxy.transport.postgresql.packet.generic.PostgreSQLErrorResponsePacket
;
import
org.apache.shardingsphere.shardingproxy.transport.postgresql.packet.generic.PostgreSQLReadyForQueryPacket
;
import
org.apache.shardingsphere.spi.hook.root.RootInvokeHook
;
import
org.apache.shardingsphere.spi.hook.root.SPIRootInvokeHook
;
import
org.apache.shardingsphere.spi.hook.RootInvokeHook
;
import
java.sql.SQLException
;
import
java.util.ArrayList
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录