RDD之flatMap与Map对比

定义 首先我们列出flatMap与Map的定义,可参考RDD API def map[U](f: (T) ⇒ U)(implicit arg0: ClassTag[U]): RDD[U]  Return a new RDD by applying a function to all elements of this RDD. def flatMap[U](f: (T) ⇒ TraversableO
相关文章
相关标签/搜索