flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Ewen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLINK-701) Change new Java API functions to SAMs
Date Fri, 01 Aug 2014 00:47:39 GMT

     [ https://issues.apache.org/jira/browse/FLINK-701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Stephan Ewen resolved FLINK-701.

       Resolution: Fixed
    Fix Version/s:     (was: pre-apache)

Fixed via 22b24f208de2501311fe504e767526690742e30e and bc89e911b2cd433bb841beab9e8e513ca0c3525d

> Change new Java API functions to SAMs
> -------------------------------------
>                 Key: FLINK-701
>                 URL: https://issues.apache.org/jira/browse/FLINK-701
>             Project: Flink
>          Issue Type: Improvement
>          Components: Java API
>            Reporter: GitHub Import
>            Assignee: Kostas Tzoumas
>              Labels: github-import
>             Fix For: 0.6-incubating
> 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

View raw message