Top Description Interfaces Annotations Classes
[default module]

Package org.apache.avro.specific


Generate specific Java classes for schemas and protocols.

This API is recommended for most RPC uses and for data applications that always use the same datatypes, i.e., whose schemas are known at compile time. For data applications that accept dynamic datatypes the generic API is recommended.

Avro types are mapped to Java as follows:

Note that when a generated class is not found corresponding to a record, enum or fixed schema, a generic representation is used. This permits generated classes to be nested within generic data structures.

Interface Summary

Modifier and TypeInterface and Description
public interface
SpecificRecord

Implemented by generated record classes.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
AvroGenerated

Indicates that an annotated class is an Avro generated class.

public @interface
FixedSize

Declares the size of implementations of GenericFixed.

Class Summary

Modifier and TypeClass and Description
pack-priv class
ExternalizableInput

Helper to permit Externalizable implementations that write to an InputStream.

pack-priv class
ExternalizableOutput

Helper to permit Externalizable implementations that write to an OutputStream.

public class
SpecificData

Utilities for generated Java classes and interfaces.

public class
SpecificDatumReader<T>

DatumReader for generated Java classes.

public class
SpecificDatumWriter<T>

DatumWriter for generated Java classes.

public abstract class
SpecificErrorBuilderBase<T extends SpecificExceptionBase>

Abstract base class for specific ErrorBuilder implementations.

public abstract class
SpecificExceptionBase

Base class for specific exceptions.

public abstract class
SpecificFixed

Base class for generated fixed-sized data classes.

public abstract class
SpecificRecordBase

Base class for generated record classes.

public abstract class
SpecificRecordBuilderBase<T extends SpecificRecord>

Abstract base class for specific RecordBuilder implementations.