[ 
https://issues.apache.org/jira/browse/ARROW-7587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17343442#comment-17343442
 ] 

Antoine Pitrou commented on ARROW-7587:
---------------------------------------

[~icook] it's called "partition_nth_indices": 
https://arrow.apache.org/docs/cpp/compute.html#sorts-and-partitions

> [C++][Compute] Add Top-k kernel
> -------------------------------
>
>                 Key: ARROW-7587
>                 URL: https://issues.apache.org/jira/browse/ARROW-7587
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Yibo Cai
>            Assignee: Yibo Cai
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.17.0
>
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> Add a kernel to get top k smallest or largest elements (indices). If we don't 
> require these elements to be sorted, std::nth_element will be a much faster 
> solution than sorting everything then pick top k.



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

Reply via email to