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

Richard Yu commented on KAFKA-8369:
-----------------------------------

Hi [~hachikuji],

I've done some research into this issue and something has come up which 
requires some clarifications.

As of the moment, the find() API in ImplicitLinkedHashCollection takes a 
{{key}} input argument. This {{key}} is used to search for an object in the set 
with the exact same hash code and that object is returned. So my question here 
is: what exactly is the key and value for the immutable map view?

I ask this because it doesn't seem clear what key-value pairs exist. The 
closest I could come up with is the {{key}} input argument being the actual key 
and the elements stored in the set the values. Is that the way this issue is to 
be approached?

Not so sure as of the moment, so would be great if I get your input. :)

> 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
(v7.6.3#76005)

Reply via email to