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

Method References are not supported as lambda expressions

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    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: None
    • 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

          Activity

            People

            • Assignee:
              twalthr Timo Walther
              Reporter:
              sewen Stephan Ewen

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment