You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Douglas Creager (JIRA)" <ji...@apache.org> on 2011/01/24 17:09:51 UTC
[jira] Updated: (AVRO-744) Helper macros for extracting and setting
record field values
[ https://issues.apache.org/jira/browse/AVRO-744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Douglas Creager updated AVRO-744:
---------------------------------
Attachment: 0001-Helper-macros-for-extracting-and-setting-record-fiel.patch
> 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.