You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Alexandre Normand (JIRA)" <ji...@apache.org> on 2012/09/05 21:50:08 UTC
[jira] [Updated] (AVRO-1147) Allow Stringable Map keys in addition
to pure String keys
[ https://issues.apache.org/jira/browse/AVRO-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexandre Normand updated AVRO-1147:
------------------------------------
Description:
I'm using avro reflection for some serialization that doesn't require the best performance for some short-lived data.
However, the object I'm trying to serialize uses a {{Map}} with non-String keys (the key class is {{Integer}}) and, because of the strict restriction on Map keys being Strings, it fails.
Could we consider allowing Map keys to be *{{Stringable}}* classes (I'm thinking of something similar to Doug's solution in https://issues.apache.org/jira/browse/AVRO-1146)
was:
I'm using avro reflection for some serialization that doesn't require the best performance for some short-lived data.
However, the object I'm trying to serialize uses a {{Map}} with non-String keys (the key class is {{Integer}}) and, because of the strict restriction on Map keys being Strings, it fails.
Could we consider allowing Map keys to be *{{Stringable}}* classes (I'm thinking of something similar to Doug's solution in https://issues.apache.org/jira/browse/AVRO-1146)?
> Allow Stringable Map keys in addition to pure String keys
> ---------------------------------------------------------
>
> Key: AVRO-1147
> URL: https://issues.apache.org/jira/browse/AVRO-1147
> Project: Avro
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.7.0
> Reporter: Alexandre Normand
>
> I'm using avro reflection for some serialization that doesn't require the best performance for some short-lived data.
> However, the object I'm trying to serialize uses a {{Map}} with non-String keys (the key class is {{Integer}}) and, because of the strict restriction on Map keys being Strings, it fails.
> Could we consider allowing Map keys to be *{{Stringable}}* classes (I'm thinking of something similar to Doug's solution in https://issues.apache.org/jira/browse/AVRO-1146)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira