Skip to content

Instantly share code, notes, and snippets.

@SudhakarReddyPeddinti
Created September 10, 2016 22:56
Show Gist options
  • Save SudhakarReddyPeddinti/c5e0cc61e09817aee38c5385ea705360 to your computer and use it in GitHub Desktop.
Save SudhakarReddyPeddinti/c5e0cc61e09817aee38c5385ea705360 to your computer and use it in GitHub Desktop.
var l = List(34, 32, 132, 352) // Scala List
l.foreach{i =>
val data:DataFrame = DataContainer.getDataFrame(i) // get DataFrame
val x = new MyClass(data) // initialize MyClass with new Object
x.setSettings(...)
x.calcSomething()
x.saveResults() // writes the Results into another Dataframe that is saved to HDFS
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment