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;
}
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;
}
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;
}
Aggregations