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 athttp://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: