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

Method References are not supported as lambda expressions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.2
    • Fix Version/s: 1.0.0, 1.2.0
    • Component/s: Core
    • Labels:
      None

      Description

      For many functions (here for example KeySelectors), one can use lambda expressions:

      DataStream<MyType> stream = ...;
      stream.keyBy( v -> v.getId() )
      

      Java's other syntax for this, Method References, do not work:

      DataStream<MyType> stream = ...;
      stream.keyBy( MyType::getId )
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                twalthr Timo Walther
                Reporter:
                StephanEwen Stephan Ewen
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: