Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # user >> Avro schema in Ruby API

Copy link to this message
Re: Avro schema in Ruby API

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
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

Harsh J