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

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

Tomas Svarovsky 2014-02-15, 23:22
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

Tomas Svarovsky 2014-02-19, 00:05