avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Need properties from Field and Schema
Date Fri, 18 Nov 2011 17:02:11 GMT
The Schema#getProps() method was added as a part of AVRO-803 and is
included in Avro 1.6.

http://avro.apache.org/docs/current/api/java/org/apache/avro/Schema.html#getProps()

Doug

On 11/18/2011 07:44 AM, Tom Burger wrote:
> Hey avro users,
> 
> another question. I want all the properties defined on a schema (and
> field). Since the user defines them at runtime I don't know how to get
> them all.
> 
> So far I've been using the AccessibleObject.setAccessible(true) on the
> props field but that is really ugly.
> 
> Any reason for not having a getProps() or getPropNames()?
> 
> Regards, Tom
> 
> -- 
> Tom Burger | tvburger@gmail.com <mailto:tvburger@gmail.com> | +31 (0)62
> 412 20 27
> http://www.linkedin.com/in/tvburger

Mime
View raw message