Search in sources :

Example 1 with PlanImplementor

use of io.mycat.calcite.plan.PlanImplementor in project Mycat2 by MyCATApache.

the class DrdsRunnerHelper method runOnDrds.

public static Future<Void> runOnDrds(MycatDataContext dataContext, DrdsSqlWithParams drdsSqlWithParams, Response response) {
    PlanImpl plan = getPlan(drdsSqlWithParams);
    PlanImplementor planImplementor = getPlanImplementor(dataContext, response, drdsSqlWithParams);
    return impl(plan, planImplementor);
}
Also used : PlanImplementor(io.mycat.calcite.plan.PlanImplementor)

Example 2 with PlanImplementor

use of io.mycat.calcite.plan.PlanImplementor in project Mycat2 by MyCATApache.

the class UpdateSQLHandler method executeUpdate.

public static Future<Void> executeUpdate(DrdsSqlWithParams drdsSqlWithParams, MycatDataContext dataContext, Response receiver, String schemaName) {
    Plan plan = getPlan(drdsSqlWithParams);
    PlanImplementor planImplementor = DrdsRunnerHelper.getPlanImplementor(dataContext, receiver, drdsSqlWithParams);
    return DrdsRunnerHelper.impl(plan, planImplementor);
}
Also used : Plan(io.mycat.calcite.spm.Plan) PlanImplementor(io.mycat.calcite.plan.PlanImplementor)

Aggregations

PlanImplementor (io.mycat.calcite.plan.PlanImplementor)2 Plan (io.mycat.calcite.spm.Plan)1