上一页 1 ··· 8 9 10 11 12
  2016年8月9日
摘要: 2016年5月11日10:08:29 hbase原本的put方式是一条一条的put,在客户端修改 AutoFlush 将HTable的setAutoFlush设为false,可以支持客户端批量更新。即当Put填满客户端flush缓存时,才发送到服务端。 默认是true。 例如: HTable hTable = new HTable(conf, tableName); hTable.setA... 阅读全文
posted @ 2016-08-09 11:56 山高似水深 阅读(1477) 评论(0) 推荐(0) 编辑
摘要: http://pan.baidu.com/s/1nvlIw21?errno=0&errmsg=Auth%20Login%20Sucess&stoken=bb98db9f451c00ae85e239959d4c9814aa7f9a1fa02096d2d11e7e51db7d37e2d4aab936f224063386d4b7593616668c78e318b42437bcd098876c2cf8e... 阅读全文
posted @ 2016-08-09 11:41 山高似水深 阅读(987) 评论(1) 推荐(1) 编辑
摘要: package udf; import org.apache.hadoop.hive.ql.exec.UDF; public class helloudf extends UDF{ public String evaluate(String str){ try { return "HelloWorld " + str; } catch (Exception e) { // TODO: han... 阅读全文
posted @ 2016-08-09 11:40 山高似水深 阅读(3824) 评论(0) 推荐(0) 编辑
摘要: 类似: 在MYSQL里面我们可以这样的执行SQL select a.Community,a.PID,b.spidertime,b.comm,b.showings,b.room from lianjia_list a ,RentHouse_lianjia b where a.site = 7 and b.city='北京' and b.comm like %a.Community%; 不行... 阅读全文
posted @ 2016-08-09 11:38 山高似水深 阅读(55633) 评论(0) 推荐(2) 编辑
摘要: conn = MysqlJdbcUtils.getConnection(); Statement ps=conn.createStatement(); ps.addBatch("truncate QB_ShowCount_Asite_copy"); ps.executeBatch(); String SrcSql = "select convert(unhex(hex(convert(Commu... 阅读全文
posted @ 2016-08-09 11:38 山高似水深 阅读(3548) 评论(0) 推荐(0) 编辑
摘要: 就是简单的一个字符串拼接,意义和所用场景自己体会下 insert into table agent_library1 select concat_ws(':',collect_set(name)) as name,contact,concat_ws(':',collect_set(company)) as company,concat_ws(':',collect_set(stores))as... 阅读全文
posted @ 2016-08-09 11:35 山高似水深 阅读(26474) 评论(0) 推荐(0) 编辑
摘要: 经过测试其中匹配双字节字符(包括汉字在内):[^\x00-\xff]非常好用推荐一下 两外推荐个网址http://mscenter.edu.cn/blog/yongsheng/archive/2004/11/19/308.html 这个家伙收录的正则很多,呵呵 关键字:正则表达式 模式匹配 Java 阅读全文
posted @ 2016-08-09 11:34 山高似水深 阅读(5537) 评论(0) 推荐(0) 编辑
摘要: function chkHalf(str){ for(var i=0;i { strCode=str.charCodeAt(i); if((strCode>65248)||(strCode==12288)){ ale... 阅读全文
posted @ 2016-08-09 11:31 山高似水深 阅读(778) 评论(0) 推荐(0) 编辑
摘要: executeQuery : 用于实现单个结果集,例如: Select 一般使用executeQuery 就是来实现单个结果集的工具 executeUpdate 用于执行 INSERT、UPDATE 或 DELETE 语句以及 SQL DDL(数据定义语言)语句,例如 CREATE TABLE 和 阅读全文
posted @ 2016-08-09 11:29 山高似水深 阅读(3259) 评论(0) 推荐(0) 编辑
  2016年8月8日
摘要: java 分割符,对于某些符号的分割符进行切割的时候需要加转义字符,我贴上例子 1、 2、 3、 4、 综上所示,有的字符切割的时候,我们可以不加 \\ 来转义 ,但是有的字符,我们必须要加 \\ 来转义才可以的,具体哪些字符我并不知道 我Copy了一段别人的总结: split分隔符总结 1.字符" 阅读全文
posted @ 2016-08-08 19:17 山高似水深 阅读(9687) 评论(1) 推荐(2) 编辑
上一页 1 ··· 8 9 10 11 12

购买方式 点击下面图标购买