# Package org.apache.avro.generic

package org.apache.avro.generic
A generic representation for Avro data.

This representation is best for applications which deal with dynamic data, whose schemas are not known until runtime.

Avro schemas are mapped to Java types as follows:

- Schema records are implemented as `GenericRecord`.
- Schema enums are implemented as `GenericEnumSymbol`.
- Schema arrays are implemented as `Collection`.
- Schema maps are implemented as `Map`.
- Schema fixed are implemented as `GenericFixed`.
- Schema strings are implemented as `CharSequence`.
- Schema bytes are implemented as `ByteBuffer`.
- Schema ints are implemented as `Integer`.
- Schema longs are implemented as `Long`.
- Schema floats are implemented as `Float`.
- Schema doubles are implemented as `Double`.
- Schema booleans are implemented as `Boolean`.

Related Packages
Package
Description
org.apache.avro
Avro kernel classes.
Class
Description
GenericArray<T>
Array that permits reuse of contained elements.
GenericContainer
Contains data of other types.
GenericData
Utilities for generic Java data.
GenericData.AbstractArray<T>
GenericData.Array<T>
Default implementation of an array.
GenericData.EnumSymbol
Default implementation of `GenericEnumSymbol`.
GenericData.Fixed
Default implementation of `GenericFixed`.
GenericData.InstanceSupplier
GenericData.Record
Default implementation of `GenericRecord`.
GenericData.StringType
Used to specify the Java type for a string schema.
GenericDatumReader<D>
`DatumReader` for generic Java objects.
GenericDatumWriter<D>
`DatumWriter` for generic Java objects.
GenericEnumSymbol<E extends GenericEnumSymbol<E>>
An enum symbol.
GenericFixed
Fixed-size data.
GenericRecord
A generic instance of a record schema.
GenericRecordBuilder
A RecordBuilder for generic records.
IndexedRecord
A record implementation that permits field access by integer index.
PrimitivesArrays
PrimitivesArrays.BooleanArray
PrimitivesArrays.DoubleArray
PrimitivesArrays.FloatArray
PrimitivesArrays.IntArray
PrimitivesArrays.LongArray
PrimitivesArrays.PrimitiveArray<T>