Package org.apache.avro

Avro kernel classes.

See:
          Description

Class Summary
Protocol A set of messages forming an application protocol.
Schema An abstract data type.
Schema.Field A field within a record.
 

Enum Summary
Schema.Field.Order How values of this field should be ordered when sorting records.
Schema.Type The type of a schema.
 

Exception Summary
AvroRuntimeException Base Avro exception.
AvroTypeException Thrown when an illegal type is used.
SchemaParseException Thrown for errors parsing schemas and protocols.
 

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 © 2010 The Apache Software Foundation