use of com.actiontech.dble.backend.mysql.nio.handler.query.impl.MultiNodeMergeHandler in project dble by actiontech.
the class NoNameNodeHandlerBuilder method buildOwn.
@Override
public void buildOwn() {
PushDownVisitor visitor = new PushDownVisitor(node, true);
visitor.visit();
this.canPushDown = true;
String sql = visitor.getSql().toString();
String schema = session.getSource().getSchema();
SchemaConfig schemaConfig = schemaConfigMap.get(schema);
RouteResultsetNode[] rrss = getTableSources(schemaConfig.getAllDataNodes(), sql);
hBuilder.checkRRSs(rrss);
MultiNodeMergeHandler mh = new MultiNodeMergeHandler(getSequenceId(), rrss, session.getSource().isAutocommit() && !session.getSource().isTxStart(), session, null);
addHandler(mh);
}
use of com.actiontech.dble.backend.mysql.nio.handler.query.impl.MultiNodeMergeHandler in project dble by actiontech.
the class HandlerBuilder method startHandler.
/**
* start all leaf handler of children of special handler
*/
public static void startHandler(DMLResponseHandler handler) throws Exception {
for (DMLResponseHandler startHandler : handler.getMerges()) {
MultiNodeMergeHandler mergeHandler = (MultiNodeMergeHandler) startHandler;
mergeHandler.execute();
}
}
Aggregations