avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jianhui Zhang <wuhua...@yahoo.com>
Subject how to work with Java generic types
Date Wed, 01 Feb 2012 02:33:11 GMT
Hi, 


I'm new to Avro. 

I wonder how people manage Java generic types with Avro? We have some generic Java beans defined
in our domain model. Something similar to:

class Pair<T1, T2> {
    T1 first;
    T2 seond;

}

How do I declare the schema and (de)serialize a bean instance? Note: the beans also contain
other complex data structure such as SortedMap, etc. 


Thanks,
James

Mime
View raw message