[
https://issues.apache.org/jira/browse/AVRO-1406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13844536#comment-13844536
]
Andrew Kokhanovskyi commented on AVRO-1406:
-------------------------------------------
Doug, while wrapping GenericDatum with a GenericField is definitely an option,
why not inherit GenericDatum to a GenericNamedDatum (that would additionally
contain the name and necessary methods)? The class users would then have a
freedom to dynamically cast GenericDatum to GenericNamedDatum if they are
interested in the field name (within the scope of the parent record).
> Avro C++ GenericRecord (GenericDatum, etc.) doesn't support getters and
> setters with field name argument
> --------------------------------------------------------------------------------------------------------
>
> Key: AVRO-1406
> URL: https://issues.apache.org/jira/browse/AVRO-1406
> Project: Avro
> Issue Type: Bug
> Components: c++
> Affects Versions: 1.7.5
> Reporter: Iaroslav Zeigerman
> Labels: c++
> Fix For: 1.7.6
>
> Attachments: AVRO-1406.patch, AVRO-1406.patch
>
>
> In Java implementation there is GenericData.Record which can use field names
> to set and get data. There is nothing similar in C++ implementation.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)