Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.nicta.scoobi.Scoobi._
- object WordCount extends ScoobiApp {
- def run() {
- val data = fromTextFile("giant-input.txt")
- val executionGraph: DObject[Int] = data.map(_.toLong).distinct.size
- // run the job:
- val result: Int = persist(executionGraph)
- println("There is a total of: " + result + " distinct numbers")
- }
- }
Add Comment
Please, Sign In to add comment