摘要: call by value:会先计算参数的值,然后再传递给被调用的函数 call by name:参数会到实际使用的时候才计算 定义方法 def return1():Int = { println("calling...") 1 } def callByValue(x: Int) = { print 阅读全文
posted @ 2019-08-22 23:50 Alcesttt 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 需求 两张表,一张click表记录某广告某一天的点击量,另一张total_click表记录某广告的总点击量 建表 pom依赖 代码 自定义类 Writable是为了与MapReduce进行对接,而DBWritable是为了与MySQL进行对接。 Map Reduce App 阅读全文
posted @ 2019-08-22 16:43 Alcesttt 阅读(344) 评论(0) 推荐(0) 编辑