Rich vs normal functions

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Rich vs normal functions

Flavio Pompermaier
Hi flinkers,
I have a simple question for you that I wanted to ask since the beginning of Flink: is there really the need to separate Rich and normal operators? Why not keeping just the rich version?

Best,
Flavio
Reply | Threaded
Open this post in threaded view
|

Re: Rich vs normal functions

Fabian Hueske-2
These reason is that the non-rich function interfaces are SAM (single abstract method) interfaces.
In Java 8, SAM interfaces can be specified as concise lambda functions.

Cheers, Fabian


2015-11-09 10:45 GMT+01:00 Flavio Pompermaier <[hidden email]>:
Hi flinkers,
I have a simple question for you that I wanted to ask since the beginning of Flink: is there really the need to separate Rich and normal operators? Why not keeping just the rich version?

Best,
Flavio