[
https://issues.apache.org/jira/browse/AVRO-1016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201786#comment-13201786
]
Scott Carey commented on AVRO-1016:
-----------------------------------
Should the copy constructor also copy aliases and props? Should we create such
a copy constructor or static factory method that creates a new field based on
an old one, and retains aliases and/or props? Creating a new one, then filling
out the bits one by one seems like a clumsy API. Either way we need the
exposed aliases() getter.
> Expose aliases on Schema.Field
> ------------------------------
>
> Key: AVRO-1016
> URL: https://issues.apache.org/jira/browse/AVRO-1016
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.6.1
> Reporter: koert kuipers
> Priority: Trivial
> Fix For: 1.6.2
>
> Attachments: AVRO-1016.diff, AVRO-1016.patch
>
>
> If i create a copy of a Schema.Field using the constructor i lose the props
> and aliases. I can find out what the props are and add them back in using
> Schema.Field.props() but there is no way to find out the aliases. Can we also
> expose the aliases? Set<String> Schema.Field.aliases()?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira