avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marius <m.die0...@googlemail.com>
Subject various number of records in records
Date Mon, 13 Apr 2015 08:35:21 GMT
Hi,

i want to put some data into an avro file, however in my case it doesn't 
work...

{
   "name":"fooList",
   "type":"record",
   "fields": [
     {"name":"count","type":"int"},
     {"name":"foo","type": {
       "type":"record",
       "name":"fooData",
       "fields":[
         {"name":"ids","type":"int"}
       ]
     }
     }

   ]
}

I want to put exactly one count (the number of ids) in it and a variable 
number of ids... However i can only append one count and one id...
I'm new to avro and JSON so i'm not sure if my idea is right or if i 
have to rewrite my code...
BTW i tried to google that but i couldn't find anything ;)

Thanks and Greetings

Marius

Mime
View raw message