Beispiel #1
0
 @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();
 }
Beispiel #2
0
 @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);
 }