Hm, this can't be done right now I think. In DataFileStream, the metadata holding HashMap structure (which is populated upon initialization itself) is not exposed out directly, only via some form of query via keys.
We could add a patch to allow retrieving the entire metadata HashMap, which can then be iterated upon if a user wants to. Or do we list out the keys alone? Opened a JIRA for this with a patch (exposing the map): https://issues.apache.org/jira/browse/AVRO-682 On Sat, Oct 23, 2010 at 7:08 AM, Patrick Linehan <[email protected]> wrote: > is there a way to list the metadata fields present in a given file? the > methods provided by DataFileReader only seem to allow for get-ing metadata > with known names, not introspecting on the metadata in general. -- Harsh J www.harshj.com
