avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <qwertyman...@gmail.com>
Subject Re: could I add a field Map
Date Fri, 08 Apr 2011 16:17:59 GMT
Yes, you can have them nested.

Sounds to me like you can benefit from using Avro IDL to write your
schemas. Have a look at http://avro.apache.org/docs/1.5.0/idl.html

On Fri, Apr 8, 2011 at 9:43 PM, Weishung Chung <weishung@gmail.com> wrote:
> hmm...could I have nested avro schemas ?
> eg.
> avro schema A defines the data object with multiple fields and another avro
> schema B defines a container/Array/map of data objects defined by the avro
> schema A.
>
> On Fri, Apr 8, 2011 at 10:56 AM, Harsh J <qwertymaniac@gmail.com> wrote:
>>
>> You can use Maps as long as their key type is limited to strings I
>> think. Map<String, X> is alright (X should also be Avro-acceptable, of
>> course..).
>>
>> On Fri, Apr 8, 2011 at 7:49 PM, Weishung Chung <weishung@gmail.com> wrote:
>> > I am using Apache Avro in my project and was wondering could it be
>> > possible
>> > to add a field Map (TreeMap). I know that we can use Array and it works
>> > but
>> > I would like to be able to get by key :)
>> > Thank you,
>> > Wei Shung
>>
>>
>>
>> --
>> Harsh J
>> http://harshj.com
>
>



-- 
Harsh J
http://harshj.com

Mime
View raw message