You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Kristoffer Sjögren <st...@gmail.com> on 2015/08/18 16:23:32 UTC

Java 8 lambdas

Hi

Is there a way to execute spark jobs with Java 8 lambdas instead of
using anonymous inner classes as seen in the examples?

I think I remember seeing real lambdas in the examples before and in
articles [1]?

Cheers,
-Kristoffer

[1] http://blog.cloudera.com/blog/2014/04/making-apache-spark-easier-to-use-in-java-with-java-8

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Re: Java 8 lambdas

Posted by Sean Owen <so...@cloudera.com>.
Yes, it should Just Work. lambdas can be used for any method that
takes an instance of an interface with one method, and that describes
Function, PairFunction, etc.

On Tue, Aug 18, 2015 at 3:23 PM, Kristoffer Sjögren <st...@gmail.com> wrote:
> Hi
>
> Is there a way to execute spark jobs with Java 8 lambdas instead of
> using anonymous inner classes as seen in the examples?
>
> I think I remember seeing real lambdas in the examples before and in
> articles [1]?
>
> Cheers,
> -Kristoffer
>
> [1] http://blog.cloudera.com/blog/2014/04/making-apache-spark-easier-to-use-in-java-with-java-8
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org