[
https://issues.apache.org/jira/browse/FLINK-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047514#comment-14047514
]
ASF GitHub Bot commented on FLINK-701:
--------------------------------------
GitHub user twalthr opened a pull request:
https://github.com/apache/incubator-flink/pull/52
Rework of TypeExtractor for SAM support [FLINK-701]
In order to support Java 8 Lambdas the TypeExtractor has been adapted to
support interface instead of classes as function bases.
See also [FLINK-701].
This PR also fixes a bug in the input validation for the new POJO types. I
have reordered some methods and introduced some sections to improve code
readability.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/twalthr/incubator-flink
TypeExtractorInterfaceSupport
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-flink/pull/52.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #52
----
commit da2bdc4f95810ae4187f6fc971245d6496d2eb61
Author: twalthr <[email protected]>
Date: 2014-06-30T10:02:37Z
Rework of TypeExtractor for SAM support
----
> Change new Java API functions to SAMs
> -------------------------------------
>
> Key: FLINK-701
> URL: https://issues.apache.org/jira/browse/FLINK-701
> Project: Flink
> Issue Type: Improvement
> Reporter: GitHub Import
> Labels: github-import
> Fix For: pre-apache
>
>
> 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|https://github.com/StephanEwen]
> Labels: enhancement, java api, user satisfaction,
> Milestone: Release 0.6 (unplanned)
> Created at: Thu Apr 17 13:06:40 CEST 2014
> State: open
--
This message was sent by Atlassian JIRA
(v6.2#6252)