# Package org.apache.avro.generic

A generic representation for Avro data.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  GenericArray<T> | Array that permits reuse of contained elements.
  GenericContainer | Contains data of other types.
  GenericData.InstanceSupplier |
  GenericEnumSymbol<E extends GenericEnumSymbol<E>> | An enum symbol.
  GenericFixed | Fixed-size data.
  GenericRecord | A generic instance of a record schema.
  IndexedRecord | A record implementation that permits field access by integer index.

- Class Summary
  Class | Description
  --- | ---
  GenericData | Utilities for generic Java data.
  GenericData.Array<T> | Default implementation of an array.
  GenericData.EnumSymbol | Default implementation of `GenericEnumSymbol`.
  GenericData.Fixed | Default implementation of `GenericFixed`.
  GenericData.Record | Default implementation of `GenericRecord`.
  GenericDatumReader<D> | `DatumReader` for generic Java objects.
  GenericDatumWriter<D> | `DatumWriter` for generic Java objects.
  GenericRecordBuilder | A RecordBuilder for generic records.

- Enum Summary
  Enum | Description
  --- | ---
  GenericData.StringType | Used to specify the Java type for a string schema.

## Package org.apache.avro.generic Description

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`.

Copyright © 2009–2024 The Apache Software Foundation. All rights reserved.