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 >> Modeling Common Fields?


Copy link to this message
-
Re: Modeling Common Fields?
This might be handled using GenericData.  You'd specify no reader
schema when you create your GenericDatumReader so the in-memory data
is represented using the same schema it was written with.  Then use
GenericRecord#put & get to access the fields you require.

http://avro.apache.org/docs/current/api/java/org/apache/avro/generic/GenericRecord.html

Might that work?

Doug
On Tue, Feb 25, 2014 at 4:10 PM, Matan Amir <[EMAIL PROTECTED]> wrote:

 
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