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

Switch to Threaded View
Avro >> mail # user >> Metadata in Java Schema class

Copy link to this message
Re: Metadata in Java Schema class
Is Schema.getProp() what you're looking for?

-- Philip

On Wed, Feb 10, 2010 at 2:23 AM, Lars Francke <[EMAIL PROTECTED]>wrote:

> Hi,
> I've got a question about "metadata" in JSON schemas. According to the
> specification "Attributes not defined in this document are permitted
> as metadata, but must not affect the format of serialized data." What
> I'd like to know is if this metadata is somehow made available in the
> Schema (or Schema.Field) class. I had a look and I don't think so but
> perhaps I'm missing something.
> Is there any easy way to access this metadata and associate it with
> the correct Schema/Fields? If not would you object against a patch
> that extends the parse function to also save metadata and make it
> available?
> Cheers,
> Lars