avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murali K. Kandula" <Murali.Kand...@threattrack.com>
Subject Avro C : How update a record or add fields one at a time
Date Wed, 12 Nov 2014 15:53:59 GMT
Hello All,



"{\"type\":\"record\",\
  \"name\":\"Person\",\
  \"fields\":[\
     {\"name\": \"ID\", \"type\": \"long\"},\
     {\"name\": \"First\", \"type\": \"string\"},\
     {\"name\": \"Last\", \"type\": \"string\"},\
     {\"name\": \"Phone\", \"type\": \"string\"},\
     {\"name\": \"Age\", \"type\": \"int\"}]}”;


For the schema mentioned above is it possible to add fields one at a time for a particular
record. Ex: Let say a record with values ( ID: 1, first: abcd, last:xyz, phone: 111-222-3344,
age:30) can we write this record to the file with only the field ID(with value 1) and then
later update the record with ID( of value 1) with first,last,phone and age.


Please let me know if it’s possible.


Thanks

Murali
Mime
View raw message