Skip to content

Instantly share code, notes, and snippets.

@invkrh
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save invkrh/cdedf48bb23a39674237 to your computer and use it in GitHub Desktop.
Save invkrh/cdedf48bb23a39674237 to your computer and use it in GitHub Desktop.
java lambda expression and method reference
rdd.map(x -> b).foreach(x -> System.out.println(x)); // works
rdd.map(x -> b).foreach(System.out::println(x)); // serialization problem
/*
* lambda expression -> interface
* method reference -> function call
* Note: idea propose using method ref which makes code broken
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment