Top Description Methods
org.apache.avro.reflect

public @Interface Union

extends Annotation
Annotations
@Retention:RUNTIME
@Target:TYPE, FIELD, PARAMETER, METHOD
@Documented
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target

Declares that a Java type should be represented by an Avro union schema. May be used for base classes or interfaces whose instantiable subclasses can be listed in the parameters to the @Union annotation. If applied to method parameters this determines the reflected message parameter type. If applied to a method, this determines its return type. A null schema may be specified with java.lang.Void.

Method Summary

Modifier and TypeMethod and Description
public Class<T>[]
value()

The instantiable classes that compose this union.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Class<T>[] value()

The instantiable classes that compose this union.