@Override public List<Map<String, byte[]>> query(String sql) { int sqlType = getSqlType(sql); MysqlResponseCallback cb = new MysqlResponseCallback() {}; org.opencloudb.mysql.client.MysqlClient.query(dataNode, sqlType, sql, 1, TimeUnit.SECONDS, cb); return cb.getRows(); }
@Override public void execute(String sql) { int sqlType = ServerParse.parse(sql); MysqlResponseCallback cb = new MysqlResponseCallback() {}; org.opencloudb.mysql.client.MysqlClient.query(dataNode, sqlType, sql, 1, TimeUnit.SECONDS, cb); }