2016-11-25 68 views

回答

2

阵共有单元号是一个大小交集的:

rdd.map { case (x, y) => x.toSet.intersect(y.toSet).size }