kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timo Meijer (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-4998) Add utility to convert between TopicPartition and PartitionInfo
Date Sat, 01 Apr 2017 12:27:41 GMT
Timo Meijer created KAFKA-4998:
----------------------------------

             Summary: Add utility to convert between TopicPartition and PartitionInfo
                 Key: KAFKA-4998
                 URL: https://issues.apache.org/jira/browse/KAFKA-4998
             Project: Kafka
          Issue Type: Improvement
            Reporter: Timo Meijer


A common usecase when working with manual assignments is to fetch information about the topics
and partitions, and then do your assignment.
The interface for fetching the metadata returns a List<PartitionInfo>, but assign requires
a Collection<TopicPartition>.

Converting between this classes is easy, but a bit verbose. Adding a simple conversion to
a utility class, or on the classes themselves, would improve the API and user experience.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message