提交 9ee2f588 编写于 作者: T terrymanu

rename org.apache.shardingsphere.sharding.route.sharding to...

rename org.apache.shardingsphere.sharding.route.sharding to org.apache.shardingsphere.sharding.route.engine
上级 30718813
......@@ -23,7 +23,7 @@ import org.apache.shardingsphere.api.hint.HintManager;
import org.apache.shardingsphere.sharding.route.ShardingRouteContext;
import org.apache.shardingsphere.sharding.route.hook.SPIRoutingHook;
import org.apache.shardingsphere.masterslave.route.engine.MasterSlaveRouteDecorator;
import org.apache.shardingsphere.sharding.route.sharding.ShardingRouter;
import org.apache.shardingsphere.sharding.route.engine.ShardingRouter;
import org.apache.shardingsphere.core.rule.MasterSlaveRule;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.core.shard.log.ShardingSQLLogger;
......
......@@ -21,8 +21,8 @@ import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.api.hint.HintManager;
import org.apache.shardingsphere.sharding.route.ShardingRouteContext;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingConditions;
import org.apache.shardingsphere.underlying.route.context.RouteResult;
import org.apache.shardingsphere.underlying.route.context.RouteUnit;
import org.apache.shardingsphere.underlying.executor.context.ExecutionContext;
......
......@@ -18,7 +18,7 @@
package org.apache.shardingsphere.core.shard;
import lombok.SneakyThrows;
import org.apache.shardingsphere.sharding.route.sharding.ShardingRouter;
import org.apache.shardingsphere.sharding.route.engine.ShardingRouter;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.encrypt.rule.EncryptRule;
import org.apache.shardingsphere.sql.parser.SQLParseEngine;
......
......@@ -18,7 +18,7 @@
package org.apache.shardingsphere.core.shard;
import lombok.SneakyThrows;
import org.apache.shardingsphere.sharding.route.sharding.ShardingRouter;
import org.apache.shardingsphere.sharding.route.engine.ShardingRouter;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.encrypt.rule.EncryptRule;
import org.apache.shardingsphere.sql.parser.SQLParseEngine;
......
......@@ -18,7 +18,7 @@
package org.apache.shardingsphere.sharding.execute.context;
import com.google.common.base.Optional;
import org.apache.shardingsphere.sharding.route.sharding.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.route.engine.keygen.GeneratedKey;
import org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext;
import org.apache.shardingsphere.underlying.executor.context.ExecutionContext;
......
......@@ -18,8 +18,8 @@
package org.apache.shardingsphere.sharding.rewrite.engine;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingConditions;
import org.apache.shardingsphere.underlying.route.context.RouteUnit;
import org.apache.shardingsphere.core.rule.DataNode;
import org.apache.shardingsphere.core.rule.ShardingRule;
......
......@@ -19,7 +19,7 @@ package org.apache.shardingsphere.sharding.rewrite.token.generator.impl;
import lombok.Setter;
import org.apache.shardingsphere.sharding.route.ShardingRouteContext;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingCondition;
import org.apache.shardingsphere.core.rule.DataNode;
import org.apache.shardingsphere.sql.parser.relation.segment.insert.InsertValueContext;
import org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext;
......
......@@ -20,7 +20,7 @@ package org.apache.shardingsphere.sharding.rewrite.token.generator.impl.keygen;
import com.google.common.base.Preconditions;
import lombok.Setter;
import org.apache.shardingsphere.sharding.route.ShardingRouteContext;
import org.apache.shardingsphere.sharding.route.sharding.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.route.engine.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.rewrite.aware.ShardingRouteContextAware;
import org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext;
import org.apache.shardingsphere.sql.parser.relation.statement.impl.InsertSQLStatementContext;
......
......@@ -19,7 +19,7 @@ package org.apache.shardingsphere.sharding.rewrite.token.generator.impl.keygen;
import com.google.common.base.Preconditions;
import lombok.Setter;
import org.apache.shardingsphere.sharding.route.sharding.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.route.engine.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.rewrite.token.pojo.impl.GeneratedKeyAssignmentToken;
import org.apache.shardingsphere.sharding.rewrite.token.pojo.impl.LiteralGeneratedKeyAssignmentToken;
import org.apache.shardingsphere.sharding.rewrite.token.pojo.impl.ParameterMarkerGeneratedKeyAssignmentToken;
......
......@@ -19,7 +19,7 @@ package org.apache.shardingsphere.sharding.rewrite.token.generator.impl.keygen;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import org.apache.shardingsphere.sharding.route.sharding.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.route.engine.keygen.GeneratedKey;
import org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext;
import org.apache.shardingsphere.sql.parser.relation.statement.impl.InsertSQLStatementContext;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.column.InsertColumnsSegment;
......
......@@ -19,7 +19,7 @@ package org.apache.shardingsphere.sharding.rewrite.token.generator.impl.keygen;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import org.apache.shardingsphere.sharding.route.sharding.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.route.engine.keygen.GeneratedKey;
import org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.column.InsertColumnsSegment;
import org.apache.shardingsphere.sql.parser.sql.statement.dml.InsertStatement;
......
......@@ -20,7 +20,7 @@ package org.apache.shardingsphere.sharding.rewrite.token.generator.impl.keygen;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import lombok.Setter;
import org.apache.shardingsphere.sharding.route.sharding.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.route.engine.keygen.GeneratedKey;
import org.apache.shardingsphere.sql.parser.relation.segment.insert.InsertValueContext;
import org.apache.shardingsphere.sql.parser.relation.segment.insert.expression.DerivedLiteralExpressionSegment;
import org.apache.shardingsphere.sql.parser.relation.segment.insert.expression.DerivedParameterMarkerExpressionSegment;
......
......@@ -19,7 +19,7 @@ package org.apache.shardingsphere.sharding.rewrite.parameterized;
import com.google.common.base.Preconditions;
import org.apache.shardingsphere.sharding.route.ShardingRouteContext;
import org.apache.shardingsphere.sharding.route.sharding.ShardingRouter;
import org.apache.shardingsphere.sharding.route.engine.ShardingRouter;
import org.apache.shardingsphere.underlying.route.context.RouteUnit;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.core.yaml.config.sharding.YamlRootShardingConfiguration;
......
......@@ -19,7 +19,7 @@ package org.apache.shardingsphere.sharding.rewrite.parameterized;
import com.google.common.base.Preconditions;
import org.apache.shardingsphere.sharding.route.ShardingRouteContext;
import org.apache.shardingsphere.sharding.route.sharding.ShardingRouter;
import org.apache.shardingsphere.sharding.route.engine.ShardingRouter;
import org.apache.shardingsphere.underlying.route.context.RouteUnit;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.core.yaml.config.sharding.YamlRootShardingConfiguration;
......
......@@ -19,8 +19,8 @@ package org.apache.shardingsphere.sharding.route;
import com.google.common.base.Optional;
import lombok.Getter;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.sharding.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.engine.keygen.GeneratedKey;
import org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext;
import org.apache.shardingsphere.underlying.route.context.RouteContext;
import org.apache.shardingsphere.underlying.route.context.RouteResult;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding;
package org.apache.shardingsphere.sharding.route.engine;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
......@@ -24,13 +24,13 @@ import org.apache.shardingsphere.api.hint.HintManager;
import org.apache.shardingsphere.sharding.route.ShardingRouteContext;
import org.apache.shardingsphere.sharding.route.type.ShardingRouteEngineFactory;
import org.apache.shardingsphere.underlying.route.DateNodeRouter;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.sharding.condition.engine.InsertClauseShardingConditionEngine;
import org.apache.shardingsphere.sharding.route.sharding.condition.engine.WhereClauseShardingConditionEngine;
import org.apache.shardingsphere.sharding.route.sharding.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.route.sharding.validator.ShardingStatementValidator;
import org.apache.shardingsphere.sharding.route.sharding.validator.ShardingStatementValidatorFactory;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.engine.condition.engine.InsertClauseShardingConditionEngine;
import org.apache.shardingsphere.sharding.route.engine.condition.engine.WhereClauseShardingConditionEngine;
import org.apache.shardingsphere.sharding.route.engine.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.route.engine.validator.ShardingStatementValidator;
import org.apache.shardingsphere.sharding.route.engine.validator.ShardingStatementValidatorFactory;
import org.apache.shardingsphere.sharding.route.type.ShardingRouteEngine;
import org.apache.shardingsphere.underlying.route.context.RouteResult;
import org.apache.shardingsphere.core.rule.BindingTableRule;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition;
package org.apache.shardingsphere.sharding.route.engine.condition;
import org.apache.shardingsphere.core.strategy.route.value.RouteValue;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition;
package org.apache.shardingsphere.sharding.route.engine.condition;
import lombok.ToString;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition;
package org.apache.shardingsphere.sharding.route.engine.condition;
import com.google.common.base.Objects;
import lombok.Getter;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition;
package org.apache.shardingsphere.sharding.route.engine.condition;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.ExpressionSegment;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.complex.CommonExpressionSegment;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition;
package org.apache.shardingsphere.sharding.route.engine.condition;
import lombok.Getter;
import lombok.ToString;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition;
package org.apache.shardingsphere.sharding.route.engine.condition;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition.engine;
package org.apache.shardingsphere.sharding.route.engine.condition.engine;
import com.google.common.base.Preconditions;
import lombok.RequiredArgsConstructor;
......@@ -25,9 +25,9 @@ import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.ExpressionSegme
import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.simple.LiteralExpressionSegment;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.simple.ParameterMarkerExpressionSegment;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.simple.SimpleExpressionSegment;
import org.apache.shardingsphere.sharding.route.sharding.condition.ExpressionConditionUtils;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.sharding.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.route.engine.condition.ExpressionConditionUtils;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.engine.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.route.spi.SPITimeService;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.core.strategy.route.value.ListRouteValue;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition.engine;
package org.apache.shardingsphere.sharding.route.engine.condition.engine;
import com.google.common.base.Optional;
import com.google.common.collect.Range;
......@@ -23,11 +23,11 @@ import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.underlying.common.exception.ShardingSphereException;
import org.apache.shardingsphere.sql.parser.relation.metadata.RelationMetas;
import org.apache.shardingsphere.sql.parser.relation.segment.table.TablesContext;
import org.apache.shardingsphere.sharding.route.sharding.condition.AlwaysFalseRouteValue;
import org.apache.shardingsphere.sharding.route.sharding.condition.AlwaysFalseShardingCondition;
import org.apache.shardingsphere.sharding.route.sharding.condition.Column;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.sharding.condition.generator.ConditionValueGeneratorFactory;
import org.apache.shardingsphere.sharding.route.engine.condition.AlwaysFalseRouteValue;
import org.apache.shardingsphere.sharding.route.engine.condition.AlwaysFalseShardingCondition;
import org.apache.shardingsphere.sharding.route.engine.condition.Column;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.engine.condition.generator.ConditionValueGeneratorFactory;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.core.strategy.route.value.ListRouteValue;
import org.apache.shardingsphere.core.strategy.route.value.RangeRouteValue;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition.generator;
package org.apache.shardingsphere.sharding.route.engine.condition.generator;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
......
......@@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition.generator;
package org.apache.shardingsphere.sharding.route.engine.condition.generator;
import com.google.common.base.Optional;
import org.apache.shardingsphere.sharding.route.sharding.condition.Column;
import org.apache.shardingsphere.sharding.route.engine.condition.Column;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.value.PredicateRightValue;
import org.apache.shardingsphere.core.strategy.route.value.RouteValue;
......
......@@ -15,15 +15,15 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition.generator;
package org.apache.shardingsphere.sharding.route.engine.condition.generator;
import com.google.common.base.Optional;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.apache.shardingsphere.sharding.route.sharding.condition.Column;
import org.apache.shardingsphere.sharding.route.sharding.condition.generator.impl.ConditionValueBetweenOperatorGenerator;
import org.apache.shardingsphere.sharding.route.sharding.condition.generator.impl.ConditionValueCompareOperatorGenerator;
import org.apache.shardingsphere.sharding.route.sharding.condition.generator.impl.ConditionValueInOperatorGenerator;
import org.apache.shardingsphere.sharding.route.engine.condition.Column;
import org.apache.shardingsphere.sharding.route.engine.condition.generator.impl.ConditionValueBetweenOperatorGenerator;
import org.apache.shardingsphere.sharding.route.engine.condition.generator.impl.ConditionValueCompareOperatorGenerator;
import org.apache.shardingsphere.sharding.route.engine.condition.generator.impl.ConditionValueInOperatorGenerator;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.value.PredicateBetweenRightValue;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.value.PredicateCompareRightValue;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.value.PredicateInRightValue;
......
......@@ -15,14 +15,14 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition.generator.impl;
package org.apache.shardingsphere.sharding.route.engine.condition.generator.impl;
import com.google.common.base.Optional;
import com.google.common.collect.Range;
import org.apache.shardingsphere.sharding.route.sharding.condition.Column;
import org.apache.shardingsphere.sharding.route.sharding.condition.ExpressionConditionUtils;
import org.apache.shardingsphere.sharding.route.sharding.condition.generator.ConditionValue;
import org.apache.shardingsphere.sharding.route.sharding.condition.generator.ConditionValueGenerator;
import org.apache.shardingsphere.sharding.route.engine.condition.Column;
import org.apache.shardingsphere.sharding.route.engine.condition.ExpressionConditionUtils;
import org.apache.shardingsphere.sharding.route.engine.condition.generator.ConditionValue;
import org.apache.shardingsphere.sharding.route.engine.condition.generator.ConditionValueGenerator;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.value.PredicateBetweenRightValue;
import org.apache.shardingsphere.sharding.route.spi.SPITimeService;
import org.apache.shardingsphere.core.strategy.route.value.RangeRouteValue;
......
......@@ -15,15 +15,15 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition.generator.impl;
package org.apache.shardingsphere.sharding.route.engine.condition.generator.impl;
import com.google.common.base.Optional;
import com.google.common.collect.Lists;
import com.google.common.collect.Range;
import org.apache.shardingsphere.sharding.route.sharding.condition.Column;
import org.apache.shardingsphere.sharding.route.sharding.condition.ExpressionConditionUtils;
import org.apache.shardingsphere.sharding.route.sharding.condition.generator.ConditionValue;
import org.apache.shardingsphere.sharding.route.sharding.condition.generator.ConditionValueGenerator;
import org.apache.shardingsphere.sharding.route.engine.condition.Column;
import org.apache.shardingsphere.sharding.route.engine.condition.ExpressionConditionUtils;
import org.apache.shardingsphere.sharding.route.engine.condition.generator.ConditionValue;
import org.apache.shardingsphere.sharding.route.engine.condition.generator.ConditionValueGenerator;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.value.PredicateCompareRightValue;
import org.apache.shardingsphere.sharding.route.spi.SPITimeService;
import org.apache.shardingsphere.core.strategy.route.value.ListRouteValue;
......
......@@ -15,13 +15,13 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition.generator.impl;
package org.apache.shardingsphere.sharding.route.engine.condition.generator.impl;
import com.google.common.base.Optional;
import org.apache.shardingsphere.sharding.route.sharding.condition.Column;
import org.apache.shardingsphere.sharding.route.sharding.condition.ExpressionConditionUtils;
import org.apache.shardingsphere.sharding.route.sharding.condition.generator.ConditionValue;
import org.apache.shardingsphere.sharding.route.sharding.condition.generator.ConditionValueGenerator;
import org.apache.shardingsphere.sharding.route.engine.condition.Column;
import org.apache.shardingsphere.sharding.route.engine.condition.ExpressionConditionUtils;
import org.apache.shardingsphere.sharding.route.engine.condition.generator.ConditionValue;
import org.apache.shardingsphere.sharding.route.engine.condition.generator.ConditionValueGenerator;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.ExpressionSegment;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.value.PredicateInRightValue;
import org.apache.shardingsphere.sharding.route.spi.SPITimeService;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.keygen;
package org.apache.shardingsphere.sharding.route.engine.keygen;
import com.google.common.base.Optional;
import lombok.Getter;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.validator;
package org.apache.shardingsphere.sharding.route.engine.validator;
import org.apache.shardingsphere.sql.parser.sql.statement.SQLStatement;
import org.apache.shardingsphere.core.rule.ShardingRule;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.validator;
package org.apache.shardingsphere.sharding.route.engine.validator;
import com.google.common.base.Optional;
import lombok.AccessLevel;
......@@ -23,8 +23,8 @@ import lombok.NoArgsConstructor;
import org.apache.shardingsphere.sql.parser.sql.statement.SQLStatement;
import org.apache.shardingsphere.sql.parser.sql.statement.dml.InsertStatement;
import org.apache.shardingsphere.sql.parser.sql.statement.dml.UpdateStatement;
import org.apache.shardingsphere.sharding.route.sharding.validator.impl.ShardingInsertStatementValidator;
import org.apache.shardingsphere.sharding.route.sharding.validator.impl.ShardingUpdateStatementValidator;
import org.apache.shardingsphere.sharding.route.engine.validator.impl.ShardingInsertStatementValidator;
import org.apache.shardingsphere.sharding.route.engine.validator.impl.ShardingUpdateStatementValidator;
/**
* Sharding statement validator factory.
......
......@@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.validator.impl;
package org.apache.shardingsphere.sharding.route.engine.validator.impl;
import com.google.common.base.Optional;
import org.apache.shardingsphere.sharding.route.sharding.validator.ShardingStatementValidator;
import org.apache.shardingsphere.sharding.route.engine.validator.ShardingStatementValidator;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.assignment.AssignmentSegment;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.column.OnDuplicateKeyColumnsSegment;
......
......@@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.validator.impl;
package org.apache.shardingsphere.sharding.route.engine.validator.impl;
import com.google.common.base.Optional;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.sharding.route.sharding.validator.ShardingStatementValidator;
import org.apache.shardingsphere.sharding.route.engine.validator.ShardingStatementValidator;
import org.apache.shardingsphere.sql.parser.relation.segment.table.TablesContext;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.assignment.AssignmentSegment;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.ExpressionSegment;
......
......@@ -20,7 +20,7 @@ package org.apache.shardingsphere.sharding.route.type;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.type.broadcast.ShardingDataSourceGroupBroadcastRoutingEngine;
import org.apache.shardingsphere.sharding.route.type.broadcast.ShardingDatabaseBroadcastRoutingEngine;
import org.apache.shardingsphere.sharding.route.type.broadcast.ShardingMasterInstanceBroadcastRoutingEngine;
......
......@@ -23,7 +23,7 @@ import com.google.common.collect.Lists;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.underlying.common.exception.ShardingSphereException;
import org.apache.shardingsphere.sql.parser.relation.statement.SQLStatementContext;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.type.ShardingRouteEngine;
import org.apache.shardingsphere.underlying.route.context.RouteResult;
import org.apache.shardingsphere.sharding.route.type.standard.ShardingStandardRoutingEngine;
......
......@@ -27,8 +27,8 @@ import org.apache.shardingsphere.sql.parser.sql.statement.SQLStatement;
import org.apache.shardingsphere.sql.parser.sql.statement.dml.DeleteStatement;
import org.apache.shardingsphere.sql.parser.sql.statement.dml.InsertStatement;
import org.apache.shardingsphere.sql.parser.sql.statement.dml.UpdateStatement;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.type.ShardingRouteEngine;
import org.apache.shardingsphere.underlying.route.context.RouteResult;
import org.apache.shardingsphere.underlying.route.context.RouteUnit;
......
......@@ -23,7 +23,7 @@ import org.apache.shardingsphere.api.config.sharding.TableRuleConfiguration;
import org.apache.shardingsphere.api.config.sharding.strategy.HintShardingStrategyConfiguration;
import org.apache.shardingsphere.api.config.sharding.strategy.InlineShardingStrategyConfiguration;
import org.apache.shardingsphere.sharding.route.fixture.HintShardingAlgorithmFixture;
import org.apache.shardingsphere.sharding.route.sharding.ShardingRouter;
import org.apache.shardingsphere.sharding.route.engine.ShardingRouter;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.spi.database.metadata.DataSourceMetaData;
import org.apache.shardingsphere.sql.parser.SQLParseEngine;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition;
package org.apache.shardingsphere.sharding.route.engine.condition;
import org.junit.Test;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition;
package org.apache.shardingsphere.sharding.route.engine.condition;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.complex.CommonExpressionSegment;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.simple.LiteralExpressionSegment;
......
......@@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition.generator.impl;
package org.apache.shardingsphere.sharding.route.engine.condition.generator.impl;
import com.google.common.base.Optional;
import org.apache.shardingsphere.sharding.route.sharding.condition.Column;
import org.apache.shardingsphere.sharding.route.engine.condition.Column;
import org.apache.shardingsphere.core.strategy.route.value.RangeRouteValue;
import org.apache.shardingsphere.core.strategy.route.value.RouteValue;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.ExpressionSegment;
......
......@@ -15,14 +15,14 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition.generator.impl;
package org.apache.shardingsphere.sharding.route.engine.condition.generator.impl;
import com.google.common.base.Optional;
import com.google.common.collect.Range;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.complex.CommonExpressionSegment;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.simple.LiteralExpressionSegment;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.value.PredicateCompareRightValue;
import org.apache.shardingsphere.sharding.route.sharding.condition.Column;
import org.apache.shardingsphere.sharding.route.engine.condition.Column;
import org.apache.shardingsphere.core.strategy.route.value.ListRouteValue;
import org.apache.shardingsphere.core.strategy.route.value.RangeRouteValue;
import org.apache.shardingsphere.core.strategy.route.value.RouteValue;
......
......@@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.condition.generator.impl;
package org.apache.shardingsphere.sharding.route.engine.condition.generator.impl;
import com.google.common.base.Optional;
import org.apache.shardingsphere.sharding.route.sharding.condition.Column;
import org.apache.shardingsphere.sharding.route.engine.condition.Column;
import org.apache.shardingsphere.core.strategy.route.value.ListRouteValue;
import org.apache.shardingsphere.core.strategy.route.value.RouteValue;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.ExpressionSegment;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.keygen;
package org.apache.shardingsphere.sharding.route.engine.keygen;
import com.google.common.base.Optional;
import org.apache.shardingsphere.underlying.common.metadata.table.TableMetas;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.validator.impl;
package org.apache.shardingsphere.sharding.route.engine.validator.impl;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.assignment.AssignmentSegment;
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sharding.route.sharding.validator.impl;
package org.apache.shardingsphere.sharding.route.engine.validator.impl;
import org.apache.shardingsphere.underlying.common.exception.ShardingSphereException;
import org.apache.shardingsphere.sql.parser.sql.segment.dml.assignment.AssignmentSegment;
......
......@@ -22,8 +22,8 @@ import org.apache.shardingsphere.api.config.sharding.TableRuleConfiguration;
import org.apache.shardingsphere.api.config.sharding.strategy.HintShardingStrategyConfiguration;
import org.apache.shardingsphere.api.config.sharding.strategy.InlineShardingStrategyConfiguration;
import org.apache.shardingsphere.api.config.sharding.strategy.ShardingStrategyConfiguration;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingConditions;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.core.strategy.route.value.ListRouteValue;
import org.apache.shardingsphere.core.strategy.route.value.RouteValue;
......
......@@ -18,7 +18,7 @@
package org.apache.shardingsphere.sharding.route.type;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.type.broadcast.ShardingDataSourceGroupBroadcastRoutingEngine;
import org.apache.shardingsphere.sharding.route.type.broadcast.ShardingDatabaseBroadcastRoutingEngine;
import org.apache.shardingsphere.sharding.route.type.broadcast.ShardingMasterInstanceBroadcastRoutingEngine;
......
......@@ -19,7 +19,7 @@ package org.apache.shardingsphere.sharding.route.type.standard;
import org.apache.shardingsphere.sharding.route.ShardingRouteContext;
import org.apache.shardingsphere.sharding.route.fixture.AbstractRoutingEngineTest;
import org.apache.shardingsphere.sharding.route.sharding.ShardingRouter;
import org.apache.shardingsphere.sharding.route.engine.ShardingRouter;
import org.apache.shardingsphere.core.rule.ShardingRule;
import org.apache.shardingsphere.sql.parser.SQLParseEngine;
import org.apache.shardingsphere.sql.parser.SQLParseEngineFactory;
......
......@@ -31,8 +31,8 @@ import org.apache.shardingsphere.sql.parser.relation.statement.impl.SelectSQLSta
import org.apache.shardingsphere.sql.parser.sql.statement.dml.InsertStatement;
import org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement;
import org.apache.shardingsphere.sharding.route.fixture.AbstractRoutingEngineTest;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.sharding.condition.ShardingConditions;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingCondition;
import org.apache.shardingsphere.sharding.route.engine.condition.ShardingConditions;
import org.apache.shardingsphere.underlying.route.context.RouteResult;
import org.apache.shardingsphere.underlying.route.context.RouteUnit;
import org.apache.shardingsphere.core.rule.ShardingRule;
......
......@@ -23,7 +23,7 @@ import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.google.common.collect.Collections2;
import lombok.Getter;
import org.apache.shardingsphere.sharding.route.sharding.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.route.engine.keygen.GeneratedKey;
import org.apache.shardingsphere.core.shard.BaseShardingEngine;
import org.apache.shardingsphere.core.shard.PreparedQueryShardingEngine;
import org.apache.shardingsphere.sharding.execute.context.ShardingExecutionContext;
......
......@@ -21,7 +21,7 @@ import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import lombok.Getter;
import org.apache.shardingsphere.sharding.route.sharding.keygen.GeneratedKey;
import org.apache.shardingsphere.sharding.route.engine.keygen.GeneratedKey;
import org.apache.shardingsphere.core.shard.BaseShardingEngine;
import org.apache.shardingsphere.core.shard.SimpleQueryShardingEngine;
import org.apache.shardingsphere.sharding.execute.context.ShardingExecutionContext;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册