提交 90849c5b 编写于 作者: T tristaZero

change import

上级 68e2fd6a
......@@ -20,7 +20,7 @@ package org.apache.shardingsphere.core.rewrite.rewriter;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.core.parse.sql.statement.SQLStatement;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import org.apache.shardingsphere.core.parse.sql.token.Substitutable;
import org.apache.shardingsphere.core.rewrite.token.pojo.Substitutable;
import org.apache.shardingsphere.core.rewrite.token.pojo.InsertColumnsToken;
import org.apache.shardingsphere.core.rewrite.builder.ParameterBuilder;
import org.apache.shardingsphere.core.rewrite.builder.SQLBuilder;
......
......@@ -20,7 +20,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import com.google.common.base.Optional;
import lombok.Getter;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import org.apache.shardingsphere.core.parse.sql.token.Substitutable;
/**
* Aggregation distinct token.
......
......@@ -21,7 +21,6 @@ import lombok.Getter;
import lombok.ToString;
import org.apache.shardingsphere.core.parse.sql.context.condition.Column;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import org.apache.shardingsphere.core.parse.sql.token.Substitutable;
/**
* Encrypt column token.
......
......@@ -21,7 +21,6 @@ import lombok.Getter;
import lombok.ToString;
import org.apache.shardingsphere.core.parse.constant.QuoteCharacter;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import org.apache.shardingsphere.core.parse.sql.token.Substitutable;
/**
* Index token.
......
......@@ -20,7 +20,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import org.apache.shardingsphere.core.parse.sql.token.Attachable;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import java.util.Collection;
......
......@@ -20,7 +20,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import org.apache.shardingsphere.core.parse.sql.token.Attachable;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import java.util.Collection;
......
......@@ -20,7 +20,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import org.apache.shardingsphere.core.parse.sql.token.Attachable;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
/**
......
......@@ -18,7 +18,6 @@
package org.apache.shardingsphere.core.rewrite.token.pojo;
import lombok.Getter;
import org.apache.shardingsphere.core.parse.sql.token.Attachable;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import java.util.Collection;
......
......@@ -18,7 +18,6 @@
package org.apache.shardingsphere.core.rewrite.token.pojo;
import lombok.Getter;
import org.apache.shardingsphere.core.parse.sql.token.Attachable;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
/**
......
......@@ -19,7 +19,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import lombok.Getter;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import org.apache.shardingsphere.core.parse.sql.token.Substitutable;
/**
* Insert set encrypt value token.
......
......@@ -19,7 +19,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import lombok.Getter;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import org.apache.shardingsphere.core.parse.sql.token.Substitutable;
/**
* Insert values token.
......
......@@ -19,7 +19,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import lombok.Getter;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import org.apache.shardingsphere.core.parse.sql.token.Substitutable;
/**
* Offset token for limit.
......
......@@ -17,7 +17,6 @@
package org.apache.shardingsphere.core.rewrite.token.pojo;
import org.apache.shardingsphere.core.parse.sql.token.Attachable;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
/**
......
......@@ -20,7 +20,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import lombok.Getter;
import lombok.ToString;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import org.apache.shardingsphere.core.parse.sql.token.Substitutable;
/**
* Remove token.
......
......@@ -19,7 +19,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import lombok.Getter;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import org.apache.shardingsphere.core.parse.sql.token.Substitutable;
/**
* Row count token for limit.
......
......@@ -19,7 +19,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import lombok.Getter;
import lombok.Setter;
import org.apache.shardingsphere.core.parse.sql.token.Attachable;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
/**
......
......@@ -20,7 +20,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import org.apache.shardingsphere.core.parse.sql.token.Attachable;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import java.util.Collection;
......
......@@ -21,7 +21,6 @@ import lombok.Getter;
import lombok.ToString;
import org.apache.shardingsphere.core.parse.constant.QuoteCharacter;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;
import org.apache.shardingsphere.core.parse.sql.token.Substitutable;
import org.apache.shardingsphere.core.parse.util.SQLUtil;
/**
......
......@@ -537,9 +537,6 @@ public final class ShardingSQLRewriterTest {
List<Object> parameters = new ArrayList<>(2);
parameters.add(1);
parameters.add("x");
selectStatement.addSQLToken(new TableToken(7, 13, "table_x", QuoteCharacter.NONE));
selectStatement.addSQLToken(new TableToken(31, 37, "table_x", QuoteCharacter.NONE));
selectStatement.addSQLToken(new TableToken(58, 64, "table_x", QuoteCharacter.NONE));
selectStatement.getTables().add(new Table("table_x", "x"));
selectStatement.getTables().add(new Table("table_y", "y"));
routeResult = new SQLRouteResult(selectStatement);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册