Skip to content

Instantly share code, notes, and snippets.

@kornysietsma
Created January 29, 2011 10:39
Show Gist options
  • Save kornysietsma/801736 to your computer and use it in GitHub Desktop.
Save kornysietsma/801736 to your computer and use it in GitHub Desktop.
sample use of progresslogger if it were scala code
p = new ProgressLogger(count=1000000)
( state => println("Processed " + state.count + "rows"))
collection.foreach(
record => (
p.trigger
// do stuff
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment