Search in sources :

Example 1 with DrdsConst

use of io.mycat.DrdsConst in project Mycat2 by MyCATApache.

the class ShardingJoinRBOMegreTest method getDrds.

public static DrdsSqlCompiler getDrds(boolean bkaJoin) {
    DrdsSqlCompiler sqlCompiler = DrdsTest.getDrds();
    DrdsConst config = sqlCompiler.getConfig();
    DrdsSqlCompiler.RBO_MERGE_JOIN = true;
    DrdsSqlCompiler.RBO_BKA_JOIN = bkaJoin;
    DrdsSqlCompiler drdsSqlCompiler = new DrdsSqlCompiler(new DrdsConst() {

        @Override
        public NameMap<SchemaHandler> schemas() {
            return config.schemas();
        }
    });
    return drdsSqlCompiler;
}
Also used : DrdsConst(io.mycat.DrdsConst) DrdsSqlCompiler(io.mycat.DrdsSqlCompiler) NameMap(io.mycat.util.NameMap)

Example 2 with DrdsConst

use of io.mycat.DrdsConst in project Mycat2 by MyCATApache.

the class AllShardingJoinTest method getDrds.

public static DrdsSqlCompiler getDrds(boolean bkaJoin) {
    DrdsSqlCompiler sqlCompiler = DrdsTest.getDrds();
    DrdsSqlCompiler.RBO_MERGE_JOIN = true;
    DrdsSqlCompiler.RBO_BKA_JOIN = bkaJoin;
    DrdsConst config = sqlCompiler.getConfig();
    DrdsSqlCompiler drdsSqlCompiler = new DrdsSqlCompiler(new DrdsConst() {

        @Override
        public NameMap<SchemaHandler> schemas() {
            return config.schemas();
        }
    });
    return drdsSqlCompiler;
}
Also used : DrdsConst(io.mycat.DrdsConst) DrdsSqlCompiler(io.mycat.DrdsSqlCompiler) NameMap(io.mycat.util.NameMap)

Example 3 with DrdsConst

use of io.mycat.DrdsConst in project Mycat2 by MyCATApache.

the class ShardingJoinTest method getDrds.

public static DrdsSqlCompiler getDrds(boolean rboMergeJoin) {
    DrdsSqlCompiler.RBO_MERGE_JOIN = rboMergeJoin;
    DrdsSqlCompiler.RBO_BKA_JOIN = false;
    DrdsSqlCompiler sqlCompiler = DrdsTest.getDrds();
    DrdsConst config = sqlCompiler.getConfig();
    DrdsSqlCompiler drdsSqlCompiler = new DrdsSqlCompiler(new DrdsConst() {

        @Override
        public NameMap<SchemaHandler> schemas() {
            return config.schemas();
        }
    });
    return drdsSqlCompiler;
}
Also used : DrdsConst(io.mycat.DrdsConst) DrdsSqlCompiler(io.mycat.DrdsSqlCompiler) NameMap(io.mycat.util.NameMap)

Aggregations

DrdsConst (io.mycat.DrdsConst)3 DrdsSqlCompiler (io.mycat.DrdsSqlCompiler)3 NameMap (io.mycat.util.NameMap)3