数据库中间件 MyCAT源码分析 —— 跨库两表Join

[新闻中心] 时间:2025-11-05 08:07:52 来源:益强IT技术网 作者:IT科技 点击:61次
数据库中间件 MyCAT源码分析 —— 跨库两表Join
复制// HintCatletHandler.java  public RouteResultset route(SystemConfig sysConfig,数据 SchemaConfig schema,                             int sqlType, String realSQL, String charset, ServerConnection sc,                             LayerCachePool cachePool, String hintSQLValue, int hintSqlType, Map hintMap)         throws SQLNonTransientException {     String cateletClass = hintSQLValue;     if (LOGGER.isDebugEnabled()) {         LOGGER.debug("load catelet class:" + hintSQLValue + " to run sql " + realSQL);     }     try {         Catlet catlet = (Catlet) MycatServer.getInstance().getCatletClassLoader().getInstanceofClass(cateletClass);         catlet.route(sysConfig, schema, sqlType, realSQL, charset, sc, cachePool);         catlet.processSQL(realSQL, new EngineCtx(sc.getSession2()));     } catch (Exception e) {         LOGGER.warn("catlet error " + e);         throw new SQLNonTransientException(e);     }     returnnull;  }   1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.

(责任编辑:IT科技)

    相关内容
    精彩推荐
    热门点击
    友情链接