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

Method References are not supported as lambda expressions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.2
    • 1.0.0, 1.2.0
    • None
    • 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

              twalthr Timo Walther
              sewen Stephan Ewen
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: