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:
date, time-millis, timestamp-millis and decimal are pre-defined in the class href="../../../../org/apache/avro/compiler/specific/SpecificCompiler.html" title="class in org.apache.avro.compiler.specific"><code>SpecificCompiler</code></a> .generic API.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.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | SpecificRecord
Implemented by generated record classes. |
| Modifier and Type | Annotation and Description |
|---|---|
| public @interface | AvroGenerated
Indicates that an annotated class is an Avro generated class. |
| public @interface | FixedSize
Declares the size of implementations of
|
| Modifier and Type | Class 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 | |
| public class | |
| 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. |