Class | Description |
---|---|
JsonProperties |
Base class for objects that have Json-valued properties.
|
Protocol |
A set of messages forming an application protocol.
|
Schema |
An abstract data type.
|
Schema.Field |
A field within a record.
|
Schema.Parser |
A parser for JSON-format schemas.
|
SchemaNormalization |
Collection of static methods for generating the cannonical form of
schemas (see
SchemaNormalization.toParsingForm(org.apache.avro.Schema) ) -- and fingerprints of cannonical
forms (SchemaNormalization.fingerprint(java.lang.String, byte[]) ). |
Enum | Description |
---|---|
Schema.Field.Order |
How values of this field should be ordered when sorting records.
|
Schema.Type |
The type of a schema.
|
Exception | Description |
---|---|
AvroRemoteException |
Base class for exceptions thrown to client by server.
|
AvroRuntimeException |
Base Avro exception.
|
AvroTypeException |
Thrown when an illegal type is used.
|
SchemaParseException |
Thrown for errors parsing schemas and protocols.
|
UnresolvedUnionException |
Thrown when the expected contents of a union cannot be resolved.
|
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-2012 The Apache Software Foundation. All Rights Reserved.