Avro, mail # user - Re: Avro schema in Ruby API - 2014-02-16, 16:08
 Search Hadoop and all its subprojects:

Switch to Threaded View
Copy link to this message
-
Re: Avro schema in Ruby API
Hi,

For (1) I believe you could do a "Schema.parse meta['avro.schema']" to
obtain the schema as an object from the meta entry of the file.

For (2), as defined in the spec at
http://avro.apache.org/docs/current/spec.html#Object+Container+Files,
since the schema is stored only in the header of the file, using a
simple initialised reader will be efficient in reading just that. The
file's data blocks are read only upon enumerating over the reader.

On Sun, Feb 16, 2014 at 4:52 AM, Tomas Svarovsky
<[EMAIL PROTECTED]> wrote:

Harsh J

 
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