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:
org.apache.avro.generic.GenericRecord .
org.apache.avro.generic.GenericEnumSymbol .
java.util.Collection .
java.util.Map .
org.apache.avro.generic.GenericFixed .
java.lang.CharSequence .
java.nio.ByteBuffer .
java.lang.Integer .
java.lang.Long .
java.lang.Float .
java.lang.Double .
java.lang.Boolean .
| Modifier and Type | Interface and Description |
|---|---|
| public interface | |
| public interface | GenericContainer
Contains data of other types. |
| public interface | |
| public interface | GenericFixed
Fixed-size data. |
| public interface | GenericRecord
A generic instance of a record schema. |
| public interface | IndexedRecord
A record implementation that permits field access by integer index. |
| Modifier and Type | Class and Description |
|---|---|
| public class | GenericData
Utilities for generic Java data. |
| public class | |
| public class | |
| public class | GenericRecordBuilder
A RecordBuilder for generic records. |