You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/07/24 00:11:04 UTC

[jira] [Commented] (KAFKA-2356) Support retrieving partitions of ConsumerRecords

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

ASF GitHub Bot commented on KAFKA-2356:
---------------------------------------

GitHub user sslavic opened a pull request:

    https://github.com/apache/kafka/pull/95

    KAFKA-2356 Added support for retrieving partitions of ConsumerRecords

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sslavic/kafka feature/KAFKA-2356

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/95.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #95
    
----
commit d58201a51dab1f32fbbde9f9cce894821ff3ad92
Author: Stevo Slavic <ss...@gmail.com>
Date:   2015-07-23T22:09:29Z

    KAFKA-2356 Added support for retrieving partitions of ConsumerRecords

----


> Support retrieving partitions of ConsumerRecords
> ------------------------------------------------
>
>                 Key: KAFKA-2356
>                 URL: https://issues.apache.org/jira/browse/KAFKA-2356
>             Project: Kafka
>          Issue Type: Improvement
>    Affects Versions: 0.8.3
>            Reporter: Stevo Slavic
>            Priority: Trivial
>              Labels: newbie
>
> In new consumer on trunk, ConsumerRecords has method to retrieve records for given TopicPartition, but there is no method to retrieve TopicPartition's included/available in ConsumerRecords. Please have it supported.
> Method could be something like:
> {noformat}
> /**
>  * Get partitions of records returned by a {@link Consumer#poll(long)} operation
> */
> public Set<TopicPartition> partitions() {
>     return Collections.unmodifiableSet(this.records.keySet());
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)