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

Bruce Mitchener commented on AVRO-744:
--------------------------------------

I still want to bring back my older patch that used atoms instead of char* for 
record field names....


> Helper macros for extracting and setting record field values
> ------------------------------------------------------------
>
>                 Key: AVRO-744
>                 URL: https://issues.apache.org/jira/browse/AVRO-744
>             Project: Avro
>          Issue Type: New Feature
>          Components: c
>            Reporter: Douglas Creager
>            Assignee: Douglas Creager
>         Attachments: 
> 0001-Helper-macros-for-extracting-and-setting-record-fiel.patch
>
>
> I've created two helper macros that can be used to extract or set the value 
> of a record field using fewer function calls.  So instead of
> {code}
> int  rc;
> avro_datum_t  field;
> char  *value;
> rc = avro_record_get(record, "name", &field);
> rc = avro_string_get(field, &value);
> {code}
> you can do:
> {code}
> int  rc;
> char  *value;
> avro_record_get_field_value(rc, record, string, "name", &value);
> {code}

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

Reply via email to