Home > other >  Introduction to spark, online etc. Reply ~ ~
Introduction to spark, online etc. Reply ~ ~

Time:09-27


Spark recently in learning to do some statistics after transformation into a string array format in this picture, could you tell me how do next to the string array under the RDD to operate, such as extract 1, four, five elements in the array to form new RDD,

CodePudding user response:

 
Val newWords=words. The map (_=& gt; {
Array (_ (0), _ (3) _ (4))
})
  • Related