You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2010/03/01 21:12:05 UTC

[jira] Commented: (AVRO-435) Support Set containers

    [ https://issues.apache.org/jira/browse/AVRO-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839831#action_12839831 ] 

Doug Cutting commented on AVRO-435:
-----------------------------------

Adding a new fundamental type to Avro is difficult without breaking back-compatibility.  But a way to achieve this might be with a schema attribute.  For example, the Java reflect API uses the "java-class" attribute to indicate which class implements a collection.  Thus the schema ReflectDatumWriter infers for HashSet<String> is {"type": "array", "items": "string", "java-class": "java.util.HashSet"}.  ReflectDatumReader then instantiates this appropriately.

Might something like this work for Cassandra?


> Support Set containers
> ----------------------
>
>                 Key: AVRO-435
>                 URL: https://issues.apache.org/jira/browse/AVRO-435
>             Project: Avro
>          Issue Type: New Feature
>          Components: spec
>            Reporter: Jonathan Ellis
>            Priority: Minor
>
> Cassandra uses Set as a return type for some methods.  It would be nice to not have to use a List as a workaround.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.