Package org.apache.avro.reflect

Use Java reflection to generate schemas and protocols for existing classes.

See: Description

Package org.apache.avro.reflect Description

Use Java reflection to generate schemas and protocols for existing classes.

This API is not recommended except as a stepping stone for systems that currently uses Java interfaces to define RPC protocols. For new RPC systems, the specific API is preferred. For systems that process dynamic data, the generic API is probably best.

Java types are mapped to Avro schemas as follows:

The Union annotation can be used to support reflection of schemas for interfaces, abstract base classes and other uses of polymorphism.

Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.