Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In order to support a compact syntax with Java 8 Lambdas, we would need to change the types of the functions to Single Abstract Method types (SAMs). Only those can be implemented by Lambdas.
That means that DataSet.map(MapFunction) would accept an interface MapFunction, not the abstract class that we use now. Many UDFs would not inherit form `AbstractFunction` any more. The inheritance from AbstractFunction would be optional, if life cycle methods (open / close) and runtime contexts are needed.
This may have also implications on the type extraction, as the generic parameters are in generic superinterfaces, rather than in generic superclasses.
---------------- Imported from GitHub ----------------
Url: https://github.com/stratosphere/stratosphere/issues/701
Created by: StephanEwen
Labels: enhancement, java api, user satisfaction,
Milestone: Release 0.6 (unplanned)
Created at: Thu Apr 17 13:06:40 CEST 2014
State: open