Package org.apache.avro

Avro kernel classes.

See: Description

Package org.apache.avro Description

Avro kernel classes.

A Schema provides an abstract definition of a data type.

The in-memory representation of data is determined by DatumReader and DatumWriter implementations. Generic implementations are provided in the org.apache.avro.generic package. A compiler can generate specific java classes and interfaces for schemas and protocols. Schemas may be automatically generated for existing Java classes by reflection using the org.apache.avro.reflect package.

Data of a given schema is always serialized identically, regardless of its in-memory representation, by traversing the schema and writing leaf values from the data structure with a Encoder. Deserializing similarly proceeds by traversing the schema, reading leaf values with a Decoder and storing them in an in-memory data structure.

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