This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (C) <2020> <chen junwen> | |
* <p> | |
* This program is free software: you can redistribute it and/or modify it under the terms of the | |
* GNU General Public License as published by the Free Software Foundation, either version 3 of the | |
* License, or (at your option) any later version. | |
* <p> | |
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without | |
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
* General Public License for more details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.mycat.replica; | |
import io.mycat.MetaClusterCurrent; | |
import io.mycat.ReplicaReporter; | |
import io.mycat.config.ClusterConfig; | |
import io.mycat.config.DatasourceConfig; | |
import io.mycat.config.TimerConfig; | |
import io.mycat.hint.CreateClusterHint; | |
import io.mycat.hint.CreateDataSourceHint; | |
import io.mycat.plug.loadBalance.LoadBalanceManager; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.mycat.drdsrunner; | |
import io.mycat.calcite.spm.Each; | |
import io.mycat.calcite.spm.Plan; | |
import io.mycat.calcite.spm.SpecificSql; | |
import org.junit.Assert; | |
import org.junit.Test; | |
import java.util.Arrays; | |
import java.util.HashSet; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.mycat.vertx; | |
import io.mycat.beans.mysql.packet.MySQLPacketSplitter; | |
import io.mycat.mycatmysql.MycatMySQLHandler; | |
import io.vertx.core.Handler; | |
import io.vertx.core.buffer.Buffer; | |
import io.vertx.core.net.NetSocket; | |
import static io.mycat.vertx.VertxMySQLPacketResolver.State.HEAD; | |
import static io.mycat.vertx.VertxMySQLPacketResolver.State.PAYLOAD; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.mycat; | |
import com.google.common.collect.ImmutableList; | |
import com.google.common.collect.ImmutableMultimap; | |
import io.mycat.api.collector.RowBaseIterator; | |
import io.mycat.api.collector.RowIteratorCloseCallback; | |
import io.mycat.beans.mycat.MycatRowMetaData; | |
import io.mycat.calcite.CodeExecuterContext; | |
import io.mycat.calcite.logical.MycatView; | |
import io.mycat.calcite.physical.MycatMergeSort; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.mycat.vertx; | |
import io.mycat.beans.mysql.packet.MySQLPacketSplitter; | |
import io.vertx.core.Context; | |
import io.vertx.core.Handler; | |
import io.vertx.core.Vertx; | |
import io.vertx.core.buffer.Buffer; | |
import io.vertx.core.net.NetSocket; | |
import java.text.MessageFormat; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.mycat; | |
import io.mycat.booster.BoosterRuntime; | |
import io.mycat.config.*; | |
import io.mycat.sqlhandler.ConfigUpdater; | |
import io.mycat.util.JsonUtil; | |
import io.mycat.util.NameMap; | |
import lombok.Data; | |
import lombok.SneakyThrows; | |
import org.apache.calcite.plan.RelOptPlanner; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.mycat.sqlhandler; | |
import com.alibaba.fastsql.sql.SQLUtils; | |
import com.alibaba.fastsql.sql.ast.statement.SQLExprTableSource; | |
import com.alibaba.fastsql.sql.ast.statement.SQLSelectStatement; | |
import com.alibaba.fastsql.sql.dialect.mysql.ast.statement.MySqlShowRelayLogEventsStatement; | |
import com.alibaba.fastsql.sql.dialect.mysql.visitor.MySqlASTVisitorAdapter; | |
import com.alibaba.fastsql.sql.dialect.mysql.visitor.MySqlSchemaStatVisitor; | |
import io.mycat.DataNode; | |
import io.mycat.MetaClusterCurrent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="http://maven.apache.org/POM/4.0.0" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<parent> | |
<artifactId>parent</artifactId> | |
<groupId>io.mycat</groupId> | |
<version>1.12-SNAPSHOT</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="http://maven.apache.org/POM/4.0.0" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<parent> | |
<artifactId>parent</artifactId> | |
<groupId>io.mycat</groupId> | |
<version>1.12-SNAPSHOT</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> |