Hbase的SQL接口之Phoenix应用总结
Hbase的SQL接口之Phoenix应用总结
http://www.myexception.cn/sql/1252220.html
http://outofmemory.cn/code-snippet/7570/phoenix-jdbc-query-console-application
public class TestWriter { public static void main(String[] args) { SQLWriter writer = TokenPhoenixWriter.getWriter("ADcjaS"); writer.writeSingleSQL("upsert into T_RESULT_CONTROL_PLAYERFLOWRATE_DETAIL(minutecol, roomid, streamid, userid, appid, cvl, pd) values('v1','v1','v1', 0,0,0,0)"); writer.close(); SQLReader reader = TokenPhoenixReader.getReader("ADcjaS"); List<Map<String, Object>> res = reader .readListMapFromSQL2("select * from T_RESULT_CONTROL_PLAYERFLOWRATE_DETAIL"); reader.close(); System.out.println(res); } }
Map<String,Object> map = this.playerflowrateDetaiService.playCalculatedRateInfor(allRequestParam); List<Map<String, Object>> list = reader.readListMapFromSQL2(sql);
相关推荐
yixiaoqi00 2020-06-01
香帅 2020-01-12
victorzhzh 2019-12-02
newfarhui 2019-10-27
ITwangnengjie 2019-10-24
MJlife 2019-06-26
lvwenyuan 2019-06-26
kiramario 2019-06-26
renzeGIS 2019-06-25
Elixir 2019-06-21
Elixir 2019-06-21
坚强00CSDN 2019-06-21
jifangege 2019-06-20
jifangege 2019-06-20
大而话之BigData 2019-02-26
joananjin 2017-12-13
不断攀登的梦想 2017-06-16
JackLang 2017-09-29
biaobro 2015-08-20