Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Shardingsphere
提交
d1859da2
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,体验更适合开发者的 AI 搜索 >>
提交
d1859da2
编写于
12月 31, 2019
作者:
T
terrymanu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor package of shardingsphere-merge
上级
521da8cd
变更
59
隐藏空白更改
内联
并排
Showing
59 changed file
with
101 addition
and
94 deletion
+101
-94
encrypt-core/encrypt-core-merge/src/main/java/org/apache/shardingsphere/encrypt/merge/dal/DALEncryptMergeEngine.java
...ardingsphere/encrypt/merge/dal/DALEncryptMergeEngine.java
+3
-3
encrypt-core/encrypt-core-merge/src/main/java/org/apache/shardingsphere/encrypt/merge/dal/DescribeTableMergedResult.java
...ngsphere/encrypt/merge/dal/DescribeTableMergedResult.java
+2
-2
encrypt-core/encrypt-core-merge/src/main/java/org/apache/shardingsphere/encrypt/merge/dql/DQLEncryptMergeEngine.java
...ardingsphere/encrypt/merge/dql/DQLEncryptMergeEngine.java
+3
-3
encrypt-core/encrypt-core-merge/src/main/java/org/apache/shardingsphere/encrypt/merge/dql/EncryptMergedResult.java
...shardingsphere/encrypt/merge/dql/EncryptMergedResult.java
+1
-1
sharding-core/sharding-core-entry/src/main/java/org/apache/shardingsphere/core/merge/MergeEntry.java
...java/org/apache/shardingsphere/core/merge/MergeEntry.java
+2
-2
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/MergeEngineFactory.java
...che/shardingsphere/sharding/merge/MergeEngineFactory.java
+2
-1
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dal/DALMergeEngine.java
...che/shardingsphere/sharding/merge/dal/DALMergeEngine.java
+3
-3
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dal/common/MultipleLocalDataMergedResult.java
...rding/merge/dal/common/MultipleLocalDataMergedResult.java
+1
-1
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dal/common/SingleLocalDataMergedResult.java
...harding/merge/dal/common/SingleLocalDataMergedResult.java
+1
-1
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dal/show/LogicTablesMergedResult.java
...here/sharding/merge/dal/show/LogicTablesMergedResult.java
+2
-2
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dal/show/ShowCreateTableMergedResult.java
.../sharding/merge/dal/show/ShowCreateTableMergedResult.java
+1
-1
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/DQLMergeEngine.java
...che/shardingsphere/sharding/merge/dql/DQLMergeEngine.java
+3
-3
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/groupby/GroupByMemoryMergedResult.java
...sharding/merge/dql/groupby/GroupByMemoryMergedResult.java
+2
-2
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/groupby/GroupByRowComparator.java
...here/sharding/merge/dql/groupby/GroupByRowComparator.java
+1
-1
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/orderby/OrderByStreamMergedResult.java
...sharding/merge/dql/orderby/OrderByStreamMergedResult.java
+1
-1
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/pagination/LimitDecoratorMergedResult.java
...ding/merge/dql/pagination/LimitDecoratorMergedResult.java
+2
-2
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/pagination/RowNumberDecoratorMergedResult.java
.../merge/dql/pagination/RowNumberDecoratorMergedResult.java
+2
-2
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/pagination/TopAndRowNumberDecoratorMergedResult.java
.../dql/pagination/TopAndRowNumberDecoratorMergedResult.java
+2
-2
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/MergeEngineFactoryTest.java
...shardingsphere/sharding/merge/MergeEngineFactoryTest.java
+1
-0
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dal/DALMergeEngineTest.java
...shardingsphere/sharding/merge/dal/DALMergeEngineTest.java
+1
-1
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/DQLMergeEngineTest.java
...shardingsphere/sharding/merge/dql/DQLMergeEngineTest.java
+2
-2
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/groupby/GroupByMemoryMergedResultTest.java
...ding/merge/dql/groupby/GroupByMemoryMergedResultTest.java
+1
-1
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/groupby/GroupByRowComparatorTest.java
.../sharding/merge/dql/groupby/GroupByRowComparatorTest.java
+1
-1
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/groupby/GroupByStreamMergedResultTest.java
...ding/merge/dql/groupby/GroupByStreamMergedResultTest.java
+1
-1
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/iterator/IteratorStreamMergedResultTest.java
...ng/merge/dql/iterator/IteratorStreamMergedResultTest.java
+1
-1
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/orderby/OrderByStreamMergedResultTest.java
...ding/merge/dql/orderby/OrderByStreamMergedResultTest.java
+1
-1
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/pagination/LimitDecoratorMergedResultTest.java
.../merge/dql/pagination/LimitDecoratorMergedResultTest.java
+1
-1
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/pagination/RowNumberDecoratorMergedResultTest.java
...ge/dql/pagination/RowNumberDecoratorMergedResultTest.java
+1
-1
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/pagination/TopAndRowNumberDecoratorMergedResultTest.java
.../pagination/TopAndRowNumberDecoratorMergedResultTest.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/resultset/EncryptResultSet.java
...re/shardingjdbc/jdbc/core/resultset/EncryptResultSet.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/resultset/ShardingResultSet.java
...e/shardingjdbc/jdbc/core/resultset/ShardingResultSet.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/statement/ShardingPreparedStatement.java
...ngjdbc/jdbc/core/statement/ShardingPreparedStatement.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/statement/ShardingStatement.java
...e/shardingjdbc/jdbc/core/statement/ShardingStatement.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/resultset/ShardingResultSetTest.java
...ardingjdbc/jdbc/core/resultset/ShardingResultSetTest.java
+1
-1
sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/communication/jdbc/JDBCDatabaseCommunicationEngine.java
...d/communication/jdbc/JDBCDatabaseCommunicationEngine.java
+1
-1
sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/text/admin/ShowDatabasesBackendHandler.java
...proxy/backend/text/admin/ShowDatabasesBackendHandler.java
+1
-1
sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/text/sctl/hint/internal/executor/AbstractHintQueryExecutor.java
...ctl/hint/internal/executor/AbstractHintQueryExecutor.java
+1
-1
sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/text/sctl/hint/internal/executor/HintShowStatusExecutor.java
...t/sctl/hint/internal/executor/HintShowStatusExecutor.java
+1
-1
sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/text/sctl/hint/internal/executor/HintShowTableStatusExecutor.java
...l/hint/internal/executor/HintShowTableStatusExecutor.java
+1
-1
sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/text/sctl/show/ShardingCTLShowBackendHandler.java
...backend/text/sctl/show/ShardingCTLShowBackendHandler.java
+1
-1
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/engine/DecoratedMergeEngine.java
...gsphere/underlying/merge/engine/DecoratedMergeEngine.java
+4
-3
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/engine/MergeEngine.java
...e/shardingsphere/underlying/merge/engine/MergeEngine.java
+4
-3
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/engine/impl/TransparentMergeEngine.java
.../underlying/merge/engine/impl/TransparentMergeEngine.java
+4
-4
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/result/MergedResult.java
.../shardingsphere/underlying/merge/result/MergedResult.java
+1
-1
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/result/impl/decorator/DecoratorMergedResult.java
...ng/merge/result/impl/decorator/DecoratorMergedResult.java
+2
-2
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/result/impl/memory/MemoryMergedResult.java
...derlying/merge/result/impl/memory/MemoryMergedResult.java
+2
-2
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/result/impl/memory/MemoryQueryResultRow.java
...rlying/merge/result/impl/memory/MemoryQueryResultRow.java
+1
-1
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/result/impl/stream/IteratorStreamMergedResult.java
.../merge/result/impl/stream/IteratorStreamMergedResult.java
+1
-1
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/result/impl/stream/StreamMergedResult.java
...derlying/merge/result/impl/stream/StreamMergedResult.java
+2
-2
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/result/impl/transparent/TransparentMergedResult.java
...erge/result/impl/transparent/TransparentMergedResult.java
+2
-2
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/result/impl/decorator/DecoratorMergedResultTest.java
...erge/result/impl/decorator/DecoratorMergedResultTest.java
+3
-3
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/result/impl/decorator/fixture/TestDecoratorMergedResult.java
...ult/impl/decorator/fixture/TestDecoratorMergedResult.java
+3
-3
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/result/impl/fixture/TestRule.java
...sphere/underlying/merge/result/impl/fixture/TestRule.java
+1
-1
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/result/impl/memory/MemoryMergedResultTest.java
...ying/merge/result/impl/memory/MemoryMergedResultTest.java
+2
-2
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/result/impl/memory/MemoryQueryResultRowTest.java
...ng/merge/result/impl/memory/MemoryQueryResultRowTest.java
+2
-1
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/result/impl/memory/fixture/TestMemoryMergedResult.java
...ge/result/impl/memory/fixture/TestMemoryMergedResult.java
+4
-3
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/result/impl/stream/StreamMergedResultTest.java
...ying/merge/result/impl/stream/StreamMergedResultTest.java
+2
-2
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/result/impl/stream/fixture/TestStreamMergedResult.java
...ge/result/impl/stream/fixture/TestStreamMergedResult.java
+2
-2
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/result/impl/transparent/TransparentMergedResultTest.java
.../result/impl/transparent/TransparentMergedResultTest.java
+2
-1
未找到文件。
encrypt-core/encrypt-core-merge/src/main/java/org/apache/shardingsphere/encrypt/merge/dal/DALEncryptMergeEngine.java
浏览文件 @
d1859da2
...
...
@@ -25,9 +25,9 @@ import org.apache.shardingsphere.sql.parser.sql.statement.SQLStatement;
import
org.apache.shardingsphere.sql.parser.sql.statement.dal.dialect.mysql.DescribeStatement
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dal.dialect.mysql.ShowColumnsStatement
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergeEngine
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.TransparentMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
engine.
MergeEngine
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.transparent
.TransparentMergedResult
;
import
java.sql.SQLException
;
import
java.util.List
;
...
...
encrypt-core/encrypt-core-merge/src/main/java/org/apache/shardingsphere/encrypt/merge/dal/DescribeTableMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -18,8 +18,8 @@
package
org.apache.shardingsphere.encrypt.merge.dal
;
import
com.google.common.base.Optional
;
import
org.apache.shardingsphere.underlying.merge.
impl
.MemoryMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.MemoryQueryResultRow
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.memory
.MemoryMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.memory
.MemoryQueryResultRow
;
import
org.apache.shardingsphere.encrypt.rule.EncryptRule
;
import
org.apache.shardingsphere.encrypt.strategy.EncryptTable
;
import
org.apache.shardingsphere.sql.parser.relation.metadata.RelationMetas
;
...
...
encrypt-core/encrypt-core-merge/src/main/java/org/apache/shardingsphere/encrypt/merge/dql/DQLEncryptMergeEngine.java
浏览文件 @
d1859da2
...
...
@@ -21,9 +21,9 @@ import lombok.RequiredArgsConstructor;
import
org.apache.shardingsphere.sql.parser.relation.metadata.RelationMetas
;
import
org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.DecoratedMergeEngine
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.IteratorStreamMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
engine.
DecoratedMergeEngine
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.stream
.IteratorStreamMergedResult
;
import
java.util.List
;
...
...
encrypt-core/encrypt-core-merge/src/main/java/org/apache/shardingsphere/encrypt/merge/dql/EncryptMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.encrypt.merge.dql;
import
com.google.common.base.Optional
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.apache.shardingsphere.encrypt.strategy.spi.Encryptor
;
import
java.io.InputStream
;
...
...
sharding-core/sharding-core-entry/src/main/java/org/apache/shardingsphere/core/merge/MergeEntry.java
浏览文件 @
d1859da2
...
...
@@ -28,13 +28,13 @@ import org.apache.shardingsphere.encrypt.merge.dql.DQLEncryptMergeEngine;
import
org.apache.shardingsphere.encrypt.merge.dql.EncryptorMetaData
;
import
org.apache.shardingsphere.encrypt.rule.EncryptRule
;
import
org.apache.shardingsphere.sharding.merge.MergeEngineFactory
;
import
org.apache.shardingsphere.underlying.merge.
impl
.IteratorStreamMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.stream
.IteratorStreamMergedResult
;
import
org.apache.shardingsphere.spi.database.type.DatabaseType
;
import
org.apache.shardingsphere.sql.parser.relation.metadata.RelationMetas
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dal.DALStatement
;
import
org.apache.shardingsphere.underlying.common.rule.BaseRule
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.sql.SQLException
;
import
java.util.Collection
;
...
...
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/MergeEngineFactory.java
浏览文件 @
d1859da2
...
...
@@ -26,7 +26,8 @@ import org.apache.shardingsphere.sharding.merge.dql.DQLMergeEngine;
import
org.apache.shardingsphere.spi.database.type.DatabaseType
;
import
org.apache.shardingsphere.sql.parser.relation.statement.impl.SelectSQLStatementContext
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dal.DALStatement
;
import
org.apache.shardingsphere.underlying.merge.MergeEngine
;
import
org.apache.shardingsphere.underlying.merge.engine.MergeEngine
;
import
org.apache.shardingsphere.underlying.merge.engine.impl.TransparentMergeEngine
;
/**
* Result merge engine factory.
...
...
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dal/DALMergeEngine.java
浏览文件 @
d1859da2
...
...
@@ -32,9 +32,9 @@ import org.apache.shardingsphere.sql.parser.sql.statement.dal.dialect.mysql.Show
import
org.apache.shardingsphere.sql.parser.sql.statement.dal.dialect.mysql.ShowTableStatusStatement
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dal.dialect.mysql.ShowTablesStatement
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergeEngine
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.TransparentMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
engine.
MergeEngine
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.transparent
.TransparentMergedResult
;
import
java.sql.SQLException
;
import
java.util.Collections
;
...
...
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dal/common/MultipleLocalDataMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -17,7 +17,7 @@
package
org.apache.shardingsphere.sharding.merge.dal.common
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.io.InputStream
;
import
java.sql.SQLException
;
...
...
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dal/common/SingleLocalDataMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -17,7 +17,7 @@
package
org.apache.shardingsphere.sharding.merge.dal.common
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.io.InputStream
;
import
java.sql.SQLException
;
...
...
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dal/show/LogicTablesMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -18,8 +18,8 @@
package
org.apache.shardingsphere.sharding.merge.dal.show
;
import
com.google.common.base.Optional
;
import
org.apache.shardingsphere.underlying.merge.
impl
.MemoryMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.MemoryQueryResultRow
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.memory
.MemoryMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.memory
.MemoryQueryResultRow
;
import
org.apache.shardingsphere.core.rule.ShardingRule
;
import
org.apache.shardingsphere.core.rule.TableRule
;
import
org.apache.shardingsphere.sql.parser.relation.metadata.RelationMetas
;
...
...
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dal/show/ShowCreateTableMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -17,7 +17,7 @@
package
org.apache.shardingsphere.sharding.merge.dal.show
;
import
org.apache.shardingsphere.underlying.merge.
impl
.MemoryQueryResultRow
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.memory
.MemoryQueryResultRow
;
import
org.apache.shardingsphere.core.rule.ShardingRule
;
import
org.apache.shardingsphere.sql.parser.relation.metadata.RelationMetas
;
import
org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext
;
...
...
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/DQLMergeEngine.java
浏览文件 @
d1859da2
...
...
@@ -20,7 +20,7 @@ package org.apache.shardingsphere.sharding.merge.dql;
import
lombok.RequiredArgsConstructor
;
import
org.apache.shardingsphere.sharding.merge.dql.groupby.GroupByMemoryMergedResult
;
import
org.apache.shardingsphere.sharding.merge.dql.groupby.GroupByStreamMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.IteratorStreamMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.stream
.IteratorStreamMergedResult
;
import
org.apache.shardingsphere.sharding.merge.dql.orderby.OrderByStreamMergedResult
;
import
org.apache.shardingsphere.sharding.merge.dql.pagination.LimitDecoratorMergedResult
;
import
org.apache.shardingsphere.sharding.merge.dql.pagination.RowNumberDecoratorMergedResult
;
...
...
@@ -36,8 +36,8 @@ import org.apache.shardingsphere.sql.parser.sql.segment.dml.order.item.IndexOrde
import
org.apache.shardingsphere.sql.parser.util.SQLUtil
;
import
org.apache.shardingsphere.underlying.common.database.type.DatabaseTypes
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergeEngine
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
engine.
MergeEngine
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.sql.SQLException
;
import
java.util.List
;
...
...
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/groupby/GroupByMemoryMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -30,8 +30,8 @@ import org.apache.shardingsphere.sql.parser.relation.segment.select.projection.i
import
org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext
;
import
org.apache.shardingsphere.sql.parser.relation.statement.impl.SelectSQLStatementContext
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.MemoryMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.MemoryQueryResultRow
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.memory
.MemoryMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.memory
.MemoryQueryResultRow
;
import
java.sql.SQLException
;
import
java.util.ArrayList
;
...
...
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/groupby/GroupByRowComparator.java
浏览文件 @
d1859da2
...
...
@@ -22,7 +22,7 @@ import lombok.RequiredArgsConstructor;
import
org.apache.shardingsphere.sharding.merge.dql.orderby.CompareUtil
;
import
org.apache.shardingsphere.sql.parser.relation.segment.select.orderby.OrderByItem
;
import
org.apache.shardingsphere.sql.parser.relation.statement.impl.SelectSQLStatementContext
;
import
org.apache.shardingsphere.underlying.merge.
impl
.MemoryQueryResultRow
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.memory
.MemoryQueryResultRow
;
import
java.util.Collection
;
import
java.util.Comparator
;
...
...
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/orderby/OrderByStreamMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -20,7 +20,7 @@ package org.apache.shardingsphere.sharding.merge.dql.orderby;
import
lombok.AccessLevel
;
import
lombok.Getter
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.StreamMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.stream
.StreamMergedResult
;
import
org.apache.shardingsphere.sql.parser.relation.segment.select.orderby.OrderByItem
;
import
java.sql.SQLException
;
...
...
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/pagination/LimitDecoratorMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -17,8 +17,8 @@
package
org.apache.shardingsphere.sharding.merge.dql.pagination
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.DecoratorMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.decorator
.DecoratorMergedResult
;
import
org.apache.shardingsphere.sql.parser.relation.segment.select.pagination.PaginationContext
;
import
java.sql.SQLException
;
...
...
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/pagination/RowNumberDecoratorMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -17,8 +17,8 @@
package
org.apache.shardingsphere.sharding.merge.dql.pagination
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.DecoratorMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.decorator
.DecoratorMergedResult
;
import
org.apache.shardingsphere.sql.parser.relation.segment.select.pagination.PaginationContext
;
import
java.sql.SQLException
;
...
...
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/pagination/TopAndRowNumberDecoratorMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -17,8 +17,8 @@
package
org.apache.shardingsphere.sharding.merge.dql.pagination
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.DecoratorMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.decorator
.DecoratorMergedResult
;
import
org.apache.shardingsphere.sql.parser.relation.segment.select.pagination.PaginationContext
;
import
java.sql.SQLException
;
...
...
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/MergeEngineFactoryTest.java
浏览文件 @
d1859da2
...
...
@@ -37,6 +37,7 @@ import org.apache.shardingsphere.sql.parser.sql.statement.dal.DALStatement;
import
org.apache.shardingsphere.sql.parser.sql.statement.dml.InsertStatement
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement
;
import
org.apache.shardingsphere.underlying.common.database.type.DatabaseTypes
;
import
org.apache.shardingsphere.underlying.merge.engine.impl.TransparentMergeEngine
;
import
org.junit.Test
;
import
java.util.Collections
;
...
...
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dal/DALMergeEngineTest.java
浏览文件 @
d1859da2
...
...
@@ -29,7 +29,7 @@ import org.apache.shardingsphere.sql.parser.sql.statement.dal.dialect.mysql.Show
import
org.apache.shardingsphere.sql.parser.sql.statement.dal.dialect.mysql.ShowOtherStatement
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dal.dialect.mysql.ShowTablesStatement
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.TransparentMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.transparent
.TransparentMergedResult
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/DQLMergeEngineTest.java
浏览文件 @
d1859da2
...
...
@@ -20,7 +20,7 @@ package org.apache.shardingsphere.sharding.merge.dql;
import
org.apache.shardingsphere.underlying.common.database.type.DatabaseTypes
;
import
org.apache.shardingsphere.sharding.merge.dql.groupby.GroupByMemoryMergedResult
;
import
org.apache.shardingsphere.sharding.merge.dql.groupby.GroupByStreamMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.IteratorStreamMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.stream
.IteratorStreamMergedResult
;
import
org.apache.shardingsphere.sharding.merge.dql.orderby.OrderByStreamMergedResult
;
import
org.apache.shardingsphere.sharding.merge.dql.pagination.LimitDecoratorMergedResult
;
import
org.apache.shardingsphere.sharding.merge.dql.pagination.RowNumberDecoratorMergedResult
;
...
...
@@ -40,7 +40,7 @@ import org.apache.shardingsphere.sql.parser.sql.segment.dml.pagination.limit.Num
import
org.apache.shardingsphere.sql.parser.sql.segment.dml.pagination.rownum.NumberLiteralRowNumberValueSegment
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.junit.Test
;
import
java.sql.SQLException
;
...
...
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/groupby/GroupByMemoryMergedResultTest.java
浏览文件 @
d1859da2
...
...
@@ -32,7 +32,7 @@ import org.apache.shardingsphere.sql.parser.relation.statement.impl.SelectSQLSta
import
org.apache.shardingsphere.sql.parser.sql.segment.dml.order.item.IndexOrderByItemSegment
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.junit.Test
;
import
java.math.BigDecimal
;
...
...
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/groupby/GroupByRowComparatorTest.java
浏览文件 @
d1859da2
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.sharding.merge.dql.groupby;
import
com.google.common.collect.Lists
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.MemoryQueryResultRow
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.memory
.MemoryQueryResultRow
;
import
org.apache.shardingsphere.sql.parser.core.constant.OrderDirection
;
import
org.apache.shardingsphere.sql.parser.relation.segment.select.groupby.GroupByContext
;
import
org.apache.shardingsphere.sql.parser.relation.segment.select.orderby.OrderByContext
;
...
...
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/groupby/GroupByStreamMergedResultTest.java
浏览文件 @
d1859da2
...
...
@@ -32,7 +32,7 @@ import org.apache.shardingsphere.sql.parser.relation.statement.impl.SelectSQLSta
import
org.apache.shardingsphere.sql.parser.sql.segment.dml.order.item.IndexOrderByItemSegment
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.junit.Test
;
import
java.math.BigDecimal
;
...
...
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/iterator/IteratorStreamMergedResultTest.java
浏览文件 @
d1859da2
...
...
@@ -28,7 +28,7 @@ import org.apache.shardingsphere.sql.parser.relation.segment.select.projection.P
import
org.apache.shardingsphere.sql.parser.relation.statement.impl.SelectSQLStatementContext
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/orderby/OrderByStreamMergedResultTest.java
浏览文件 @
d1859da2
...
...
@@ -30,7 +30,7 @@ import org.apache.shardingsphere.sql.parser.relation.statement.impl.SelectSQLSta
import
org.apache.shardingsphere.sql.parser.sql.segment.dml.order.item.IndexOrderByItemSegment
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/pagination/LimitDecoratorMergedResultTest.java
浏览文件 @
d1859da2
...
...
@@ -29,7 +29,7 @@ import org.apache.shardingsphere.sql.parser.relation.statement.impl.SelectSQLSta
import
org.apache.shardingsphere.sql.parser.sql.segment.dml.pagination.limit.NumberLiteralLimitValueSegment
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.junit.Test
;
import
java.sql.SQLException
;
...
...
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/pagination/RowNumberDecoratorMergedResultTest.java
浏览文件 @
d1859da2
...
...
@@ -29,7 +29,7 @@ import org.apache.shardingsphere.sql.parser.relation.statement.impl.SelectSQLSta
import
org.apache.shardingsphere.sql.parser.sql.segment.dml.pagination.rownum.NumberLiteralRowNumberValueSegment
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.junit.Test
;
import
java.sql.SQLException
;
...
...
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/pagination/TopAndRowNumberDecoratorMergedResultTest.java
浏览文件 @
d1859da2
...
...
@@ -30,7 +30,7 @@ import org.apache.shardingsphere.sql.parser.sql.segment.dml.pagination.limit.Num
import
org.apache.shardingsphere.sql.parser.sql.segment.dml.pagination.rownum.NumberLiteralRowNumberValueSegment
;
import
org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.junit.Test
;
import
java.sql.SQLException
;
...
...
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/resultset/EncryptResultSet.java
浏览文件 @
d1859da2
...
...
@@ -28,7 +28,7 @@ import org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementConte
import
org.apache.shardingsphere.sql.parser.sql.statement.dal.DALStatement
;
import
org.apache.shardingsphere.underlying.common.constant.properties.PropertiesConstant
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.io.InputStream
;
import
java.io.Reader
;
...
...
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/resultset/ShardingResultSet.java
浏览文件 @
d1859da2
...
...
@@ -17,7 +17,7 @@
package
org.apache.shardingsphere.shardingjdbc.jdbc.core.resultset
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.apache.shardingsphere.core.route.SQLRouteResult
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.adapter.AbstractResultSetAdapter
;
...
...
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/statement/ShardingPreparedStatement.java
浏览文件 @
d1859da2
...
...
@@ -43,7 +43,7 @@ import org.apache.shardingsphere.sql.parser.sql.statement.dml.InsertStatement;
import
org.apache.shardingsphere.underlying.common.constant.properties.PropertiesConstant
;
import
org.apache.shardingsphere.underlying.common.rule.BaseRule
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.sql.PreparedStatement
;
import
java.sql.ResultSet
;
...
...
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/statement/ShardingStatement.java
浏览文件 @
d1859da2
...
...
@@ -40,7 +40,7 @@ import org.apache.shardingsphere.sql.parser.sql.statement.dml.InsertStatement;
import
org.apache.shardingsphere.underlying.common.constant.properties.PropertiesConstant
;
import
org.apache.shardingsphere.underlying.common.rule.BaseRule
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.sql.ResultSet
;
import
java.sql.SQLException
;
...
...
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/resultset/ShardingResultSetTest.java
浏览文件 @
d1859da2
...
...
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.shardingjdbc.jdbc.core.resultset;
import
com.google.common.base.Optional
;
import
org.apache.shardingsphere.underlying.common.constant.properties.ShardingSphereProperties
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.apache.shardingsphere.core.route.SQLRouteResult
;
import
org.apache.shardingsphere.encrypt.rule.EncryptRule
;
import
org.apache.shardingsphere.core.rule.ShardingRule
;
...
...
sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/communication/jdbc/JDBCDatabaseCommunicationEngine.java
浏览文件 @
d1859da2
...
...
@@ -47,7 +47,7 @@ import org.apache.shardingsphere.transaction.core.TransactionType;
import
org.apache.shardingsphere.underlying.common.constant.properties.PropertiesConstant
;
import
org.apache.shardingsphere.underlying.common.rule.BaseRule
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.sql.SQLException
;
import
java.util.ArrayList
;
...
...
sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/text/admin/ShowDatabasesBackendHandler.java
浏览文件 @
d1859da2
...
...
@@ -27,7 +27,7 @@ import org.apache.shardingsphere.shardingproxy.backend.response.query.QueryRespo
import
org.apache.shardingsphere.shardingproxy.backend.schema.LogicSchemas
;
import
org.apache.shardingsphere.shardingproxy.backend.text.TextProtocolBackendHandler
;
import
org.apache.shardingsphere.shardingproxy.context.ShardingProxyContext
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.sql.SQLException
;
import
java.sql.Types
;
...
...
sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/text/sctl/hint/internal/executor/AbstractHintQueryExecutor.java
浏览文件 @
d1859da2
...
...
@@ -17,7 +17,7 @@
package
org.apache.shardingsphere.shardingproxy.backend.text.sctl.hint.internal.executor
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.apache.shardingsphere.shardingproxy.backend.response.BackendResponse
;
import
org.apache.shardingsphere.shardingproxy.backend.response.query.QueryData
;
import
org.apache.shardingsphere.shardingproxy.backend.response.query.QueryHeader
;
...
...
sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/text/sctl/hint/internal/executor/HintShowStatusExecutor.java
浏览文件 @
d1859da2
...
...
@@ -22,7 +22,7 @@ import org.apache.shardingsphere.sharding.merge.dal.common.MultipleLocalDataMerg
import
org.apache.shardingsphere.shardingproxy.backend.response.query.QueryHeader
;
import
org.apache.shardingsphere.shardingproxy.backend.text.sctl.hint.internal.HintShardingType
;
import
org.apache.shardingsphere.shardingproxy.backend.text.sctl.hint.internal.command.HintShowStatusCommand
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.sql.Types
;
import
java.util.ArrayList
;
...
...
sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/text/sctl/hint/internal/executor/HintShowTableStatusExecutor.java
浏览文件 @
d1859da2
...
...
@@ -26,7 +26,7 @@ import org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.connec
import
org.apache.shardingsphere.shardingproxy.backend.response.query.QueryHeader
;
import
org.apache.shardingsphere.shardingproxy.backend.text.sctl.hint.internal.command.HintShowTableStatusCommand
;
import
org.apache.shardingsphere.shardingproxy.backend.text.sctl.hint.internal.result.HintShowTableStatusResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.sql.Types
;
import
java.util.ArrayList
;
...
...
sharding-proxy/sharding-proxy-backend/src/main/java/org/apache/shardingsphere/shardingproxy/backend/text/sctl/show/ShardingCTLShowBackendHandler.java
浏览文件 @
d1859da2
...
...
@@ -28,7 +28,7 @@ import org.apache.shardingsphere.shardingproxy.backend.response.query.QueryRespo
import
org.apache.shardingsphere.shardingproxy.backend.text.TextProtocolBackendHandler
;
import
org.apache.shardingsphere.shardingproxy.backend.text.sctl.exception.InvalidShardingCTLFormatException
;
import
org.apache.shardingsphere.shardingproxy.backend.text.sctl.exception.UnsupportedShardingCTLTypeException
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.sql.SQLException
;
import
java.sql.Types
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/DecoratedMergeEngine.java
→
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
engine/
DecoratedMergeEngine.java
浏览文件 @
d1859da2
...
...
@@ -15,15 +15,16 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge
;
package
org.apache.shardingsphere.underlying.merge
.engine
;
import
org.apache.shardingsphere.sql.parser.relation.metadata.RelationMetas
;
import
org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext
;
import
org.apache.shardingsphere.underlying.merge.result.MergedResult
;
import
java.sql.SQLException
;
/**
* Decorated
result set
merge engine.
* Decorated
query results
merge engine.
*
* @author zhangliang
*/
...
...
@@ -35,7 +36,7 @@ public interface DecoratedMergeEngine extends MergeEngine {
* @param mergedResult merged result
* @param sqlStatementContext SQL statement context
* @param relationMetas relation metas
* @return merged result
set
* @return merged result
* @throws SQLException SQL exception
*/
MergedResult
merge
(
MergedResult
mergedResult
,
SQLStatementContext
sqlStatementContext
,
RelationMetas
relationMetas
)
throws
SQLException
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/MergeEngine.java
→
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
engine/
MergeEngine.java
浏览文件 @
d1859da2
...
...
@@ -15,17 +15,18 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge
;
package
org.apache.shardingsphere.underlying.merge
.engine
;
import
org.apache.shardingsphere.sql.parser.relation.metadata.RelationMetas
;
import
org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.result.MergedResult
;
import
java.sql.SQLException
;
import
java.util.List
;
/**
*
Result set
merge engine.
*
Query results
merge engine.
*
* @author zhangliang
*/
...
...
@@ -37,7 +38,7 @@ public interface MergeEngine {
* @param queryResults query results
* @param sqlStatementContext SQL statement context
* @param relationMetas relation metas
* @return merged result
set
* @return merged result
* @throws SQLException SQL exception
*/
MergedResult
merge
(
List
<
QueryResult
>
queryResults
,
SQLStatementContext
sqlStatementContext
,
RelationMetas
relationMetas
)
throws
SQLException
;
...
...
sharding
-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge
/TransparentMergeEngine.java
→
sharding
sphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/engine/impl
/TransparentMergeEngine.java
浏览文件 @
d1859da2
...
...
@@ -15,15 +15,15 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.
sharding.merge
;
package
org.apache.shardingsphere.
underlying.merge.engine.impl
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.shardingsphere.underlying.merge.impl.IteratorStreamMergedResult
;
import
org.apache.shardingsphere.underlying.merge.engine.MergeEngine
;
import
org.apache.shardingsphere.underlying.merge.result.impl.stream.IteratorStreamMergedResult
;
import
org.apache.shardingsphere.sql.parser.relation.metadata.RelationMetas
;
import
org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergeEngine
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.result.MergedResult
;
import
java.util.List
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/MergedResult.java
→
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
result/
MergedResult.java
浏览文件 @
d1859da2
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge
;
package
org.apache.shardingsphere.underlying.merge
.result
;
import
java.io.InputStream
;
import
java.sql.SQLException
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
impl
/DecoratorMergedResult.java
→
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
result/impl/decorator
/DecoratorMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -15,11 +15,11 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.decorator
;
import
lombok.Getter
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.io.InputStream
;
import
java.sql.SQLException
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
impl
/MemoryMergedResult.java
→
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
result/impl/memory
/MemoryMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -15,14 +15,14 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.memory
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.shardingsphere.underlying.common.rule.BaseRule
;
import
org.apache.shardingsphere.sql.parser.relation.metadata.RelationMetas
;
import
org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.io.InputStream
;
import
java.io.Reader
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
impl
/MemoryQueryResultRow.java
→
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
result/impl/memory
/MemoryQueryResultRow.java
浏览文件 @
d1859da2
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.memory
;
import
com.google.common.base.Preconditions
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
impl
/IteratorStreamMergedResult.java
→
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
result/impl/stream
/IteratorStreamMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.stream
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
impl
/StreamMergedResult.java
→
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
result/impl/stream
/StreamMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -15,11 +15,11 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.stream
;
import
lombok.Setter
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.io.InputStream
;
import
java.sql.SQLException
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
impl
/TransparentMergedResult.java
→
shardingsphere-underlying/shardingsphere-merge/src/main/java/org/apache/shardingsphere/underlying/merge/
result/impl/transparent
/TransparentMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -15,11 +15,11 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.transparent
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
java.io.InputStream
;
import
java.sql.SQLException
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
impl
/DecoratorMergedResultTest.java
→
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
result/impl/decorator
/DecoratorMergedResultTest.java
浏览文件 @
d1859da2
...
...
@@ -15,10 +15,10 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.decorator
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.fixture.TestDecoratorMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.decorator
.fixture.TestDecoratorMergedResult
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
impl
/fixture/TestDecoratorMergedResult.java
→
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
result/impl/decorator
/fixture/TestDecoratorMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -15,10 +15,10 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
.fixture
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.decorator
.fixture
;
import
org.apache.shardingsphere.underlying.merge.MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.DecoratorMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.
MergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.decorator
.DecoratorMergedResult
;
public
final
class
TestDecoratorMergedResult
extends
DecoratorMergedResult
{
...
...
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/impl/fixture/TestRule.java
→
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
result/
impl/fixture/TestRule.java
浏览文件 @
d1859da2
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.impl.fixture
;
package
org.apache.shardingsphere.underlying.merge.
result.
impl.fixture
;
import
org.apache.shardingsphere.underlying.common.config.RuleConfiguration
;
import
org.apache.shardingsphere.underlying.common.rule.BaseRule
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
impl
/MemoryMergedResultTest.java
→
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
result/impl/memory
/MemoryMergedResultTest.java
浏览文件 @
d1859da2
...
...
@@ -15,9 +15,9 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.memory
;
import
org.apache.shardingsphere.underlying.merge.
impl
.fixture.TestMemoryMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.memory
.fixture.TestMemoryMergedResult
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
impl
/MemoryQueryResultRowTest.java
→
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
result/impl/memory
/MemoryQueryResultRowTest.java
浏览文件 @
d1859da2
...
...
@@ -15,9 +15,10 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.memory
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.result.impl.memory.MemoryQueryResultRow
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
impl
/fixture/TestMemoryMergedResult.java
→
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
result/impl/memory
/fixture/TestMemoryMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -15,14 +15,15 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
.fixture
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.memory
.fixture
;
import
lombok.Getter
;
import
org.apache.shardingsphere.sql.parser.relation.metadata.RelationMetas
;
import
org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.impl.MemoryMergedResult
;
import
org.apache.shardingsphere.underlying.merge.impl.MemoryQueryResultRow
;
import
org.apache.shardingsphere.underlying.merge.result.impl.fixture.TestRule
;
import
org.apache.shardingsphere.underlying.merge.result.impl.memory.MemoryMergedResult
;
import
org.apache.shardingsphere.underlying.merge.result.impl.memory.MemoryQueryResultRow
;
import
java.sql.SQLException
;
import
java.util.Collections
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
impl
/StreamMergedResultTest.java
→
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
result/impl/stream
/StreamMergedResultTest.java
浏览文件 @
d1859da2
...
...
@@ -15,10 +15,10 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.stream
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.
impl
.fixture.TestStreamMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.stream
.fixture.TestStreamMergedResult
;
import
org.junit.Test
;
import
java.io.InputStream
;
...
...
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
impl
/fixture/TestStreamMergedResult.java
→
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
result/impl/stream
/fixture/TestStreamMergedResult.java
浏览文件 @
d1859da2
...
...
@@ -15,9 +15,9 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
.fixture
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.stream
.fixture
;
import
org.apache.shardingsphere.underlying.merge.
impl
.StreamMergedResult
;
import
org.apache.shardingsphere.underlying.merge.
result.impl.stream
.StreamMergedResult
;
public
final
class
TestStreamMergedResult
extends
StreamMergedResult
{
...
...
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
impl
/TransparentMergedResultTest.java
→
shardingsphere-underlying/shardingsphere-merge/src/test/java/org/apache/shardingsphere/underlying/merge/
result/impl/transparent
/TransparentMergedResultTest.java
浏览文件 @
d1859da2
...
...
@@ -15,9 +15,10 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.underlying.merge.
impl
;
package
org.apache.shardingsphere.underlying.merge.
result.impl.transparent
;
import
org.apache.shardingsphere.underlying.executor.QueryResult
;
import
org.apache.shardingsphere.underlying.merge.result.impl.transparent.TransparentMergedResult
;
import
org.hamcrest.CoreMatchers
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录