![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
scala
文章平均质量分 52
JackLi_csdn
这个作者很懒,什么都没留下…
展开
-
欧氏距离计算
一、不转换成rddval pointsWithIndex=list.asScala.toList.zipWithIndex val dis = pointsWithIndex.flatMap(a => pointsWithIndex.filter(_._2 > a._2).map((a, _))) .map({ case (a, b) => (a._1.getTrackletID, b.原创 2017-08-23 16:59:10 · 4066 阅读 · 0 评论 -
scala
http://my.oschina.net/chengye/blog/126461转载 2016-05-16 18:39:43 · 415 阅读 · 0 评论 -
spark 小技巧
一、把结果带出foreachval e= b.map(f⇒{ var dbConnector:GraphDatabaseConnector=new Neo4jConnector(); val eachList=dbConnector.getPersonSimList(f._1) dbConnector.finalize() dbConnec原创 2017-09-17 22:03:24 · 746 阅读 · 0 评论 -
scala 使用
时间戳val now = new Date() def getCurrent_time():Long = { val a = now.getTime var str = a+"" str.toLong }原创 2017-08-23 18:10:56 · 512 阅读 · 0 评论 -
Scala
Scala 下划线https://blog.csdn.net/i6448038/article/details/50017427https://www.cnblogs.com/joymufeng/p/6866999.html转载 2018-10-03 23:00:09 · 89 阅读 · 0 评论 -
Scala入门学习之【wordcount】
https://blog.csdn.net/freefish_yzx/article/details/77278271转载 2018-10-03 23:03:04 · 97 阅读 · 0 评论