Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # user >> How to set 'values' in a record


Copy link to this message
-
How to set 'values' in a record
As the example on the avro c website shows,

Create datum for record
 avro_datum_t person = avro_record(person_schema);
Create Datun for a field
 avro_datum_t id_datum = avro_int64(++id);

Set the field value in the record
avro_record_set(person, "ID", id_datum)

With the above API being deprecated,

How do I set avro_value_t in a record ?

I tried searching for counterpart of avro_value_get_by_name
but could not find it
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB