上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 45 下一页
摘要: if [ str1 = str2 ] 当两个串有相同内容、长度时为真 if [ str1 != str2 ] 当串str1和str2不等时为真 if [ -n str1 ] 当串的长度大于0时为真(串非空) if [ -z str1 ] 当串的长度为0时为真(空串) if [ str1 ] 当串st 阅读全文
posted @ 2017-06-06 13:25 牵牛花 阅读(473) 评论(0) 推荐(0)
摘要: ArrayBuffer:类型化数组 首先需要注意的是Array是定长数组,而ArrayBuffer是可变数组。下面是一个小例子,对数据进行便利和修改的操作。 阅读全文
posted @ 2017-06-06 10:02 牵牛花 阅读(213) 评论(0) 推荐(0)
摘要: eclipse里修改 Goals值 Tomcat -Dmaven.tomcat.port=8080 tomcat:run Jetty -Djetty.port=8081 jetty:run eclipse里修改 Goals值 Tomcat -Dmaven.tomcat.port=8080 tomca 阅读全文
posted @ 2017-06-05 15:12 牵牛花 阅读(4740) 评论(0) 推荐(0)
摘要: [Scala函数特性系列]——按名称传递参数 阅读全文
posted @ 2017-06-04 22:15 牵牛花 阅读(261) 评论(0) 推荐(0)
摘要: var addMore = (x: Int) => x+more 依照这个函数字面量在运行时创建的函数值(对象)被称为闭包:(closure)。名称源自通过"捕获"自由变量的绑定,从而对函数字面量执行的"闭包"行动。 Scala 闭包 阅读全文
posted @ 2017-06-04 17:42 牵牛花 阅读(126) 评论(0) 推荐(0)
摘要: 理解Scala的Symbol类型 阅读全文
posted @ 2017-06-03 21:30 牵牛花 阅读(249) 评论(0) 推荐(0)
摘要: https://docs.mongodb.com/manual/reference/operator/update-field/ 阅读全文
posted @ 2017-06-03 17:49 牵牛花 阅读(368) 评论(0) 推荐(0)
摘要: > db.eval('return "hello mongodb "');hello mongodb save和insert的区别,save会变成更新语句并保存,insert则会报错 > db.persons.update({_id:"02"}, {_id:"02",name:"x0023"},tr 阅读全文
posted @ 2017-06-03 17:45 牵牛花 阅读(629) 评论(0) 推荐(0)
摘要: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF 重点学习的是字符串的操作,所以建立一个空表就可以了, create table dual(id string); load 一个文件dual.dat 只有一个空格 阅读全文
posted @ 2017-06-01 18:25 牵牛花 阅读(304) 评论(0) 推荐(0)
摘要: 建表 full outer join ,两边的数据都会出来只不过on条件没有对应上的一端会显示为null select a.*from a left semi join b on a.id = b.id; -- from 前不能写b.* 否则会报错( Error while compiling st 阅读全文
posted @ 2017-06-01 16:45 牵牛花 阅读(706) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 45 下一页