Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.32 KB | None | 0 0
  1.  
  2.   def getMatchingIDs(df : DataFrame): DataFrame = {
  3.     //zwraca wiersze wyfiltrowane z df...
  4.    }
  5.  
  6.  
  7.     //definitely not scala way...
  8.     var result : DataFrame = Seq.empty[(String,String)].toDF("col1", "col2")
  9.     pairs.collect().foreach(row => {
  10.        result = result.union(getMatchingIDs(df))
  11.     }
  12.     )
  13.  
  14.     result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement