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

Colin McCabe commented on KAFKA-8369:
-------------------------------------

So, the collection is the way it is to avoid having separate key and value 
classes.  We could possibly provide an option in the JSON to generate separate 
key and value objects if we really want that.

> Generate an immutable Map view for generated messages with a map key
> --------------------------------------------------------------------
>
>                 Key: KAFKA-8369
>                 URL: https://issues.apache.org/jira/browse/KAFKA-8369
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Jason Gustafson
>            Priority: Major
>
> When using the "mapKey" feature, we get an ImplicitLinkedHashCollection which 
> can be used like a map using the `find()` API. The benefit of this is 
> hopefully avoiding a conversion to another type when handled by the broker, 
> but it is a little cumbersome to work with, so we often end up doing the 
> conversion anyway. One improvement would be to provide a way to convert this 
> collection to an immutable Map view so that it is easier to work with 
> directly.



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

Reply via email to