Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-701

Change new Java API functions to SAMs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.6-incubating
    • 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

      Attachments

        Issue Links

          Activity

            People

              ktzoumas Kostas Tzoumas
              github-import GitHub Import
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: