[
https://issues.apache.org/jira/browse/FLINK-2549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14704437#comment-14704437
]
Chesnay Schepler commented on FLINK-2549:
-----------------------------------------
is the only difference between topK() and first() that the values are sorted?
if so, why can't this be implemented in a similar fashion, like
{code}
//this is just the general idea
public GroupReduceOperator<T, T> topK(int key) {
return this.sort(key).reduceGroup(new FirstReducer<T>(n));
}
{code}
> Add topK operator for DataSet
> -----------------------------
>
> Key: FLINK-2549
> URL: https://issues.apache.org/jira/browse/FLINK-2549
> Project: Flink
> Issue Type: New Feature
> Components: Core, Java API, Scala API
> Reporter: Chengxiang Li
> Assignee: Chengxiang Li
> Priority: Minor
>
> topK is a common operation for user, it would be great to have it in Flink.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)