You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Aljoscha Krettek (Jira)" <ji...@apache.org> on 2019/10/15 11:39:00 UTC

[jira] [Closed] (FLINK-2184) Cannot get last element with maxBy/minBy

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

Aljoscha Krettek closed FLINK-2184.
-----------------------------------
    Resolution: Won't Do

I would rather remove the maxBy/minBy etc. methods from both APIs if we can at some point.

> Cannot get last element with maxBy/minBy
> ----------------------------------------
>
>                 Key: FLINK-2184
>                 URL: https://issues.apache.org/jira/browse/FLINK-2184
>             Project: Flink
>          Issue Type: Improvement
>          Components: API / DataStream, API / Scala
>            Reporter: Gábor Hermann
>            Priority: Minor
>
> In the streaming Scala API there is no method
> {{maxBy(int positionToMaxBy, boolean first)}}
> nor
> {{minBy(int positionToMinBy, boolean first)}}
> like in the Java API, where _first_ set to {{true}} indicates that the latest found element will return.
> These methods should be added to the Scala API too, in order to be consistent.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)