/[Apache-SVN]
ViewVC logotype

Revision 1074585


Jump to revision: Previous Next
Author: dcreager
Date: Fri Feb 25 15:43:50 2011 UTC (13 years, 1 month ago)
Changed paths: 11
Log Message:
AVRO-751. C: Store schema reference in datum instances

We now keep track of which particular schema an avro_datum_t is an
instance of.  For primitive values, there's only one possible schema,
and so we don't store an explicit reference.  For compound values, the
datum constructors now take in a schema parameter, which is stored in
the avro_datum_t instance.  For records, enums, and fixeds, this means
that we don't need to store the name of the schema type anymore, since
we can get this from the schema.

There were also several functions, which operate on datum instances,
which needed to take in a schema parameter — avro_datum_to_json, as an
example.  Those parameters aren't needed anymore, since the datum
carries a reference to its own schema already.


Changed paths

Path Details
Directoryavro/trunk/CHANGES.txt modified , text changed
Directoryavro/trunk/lang/c/examples/quickstop.c modified , text changed
Directoryavro/trunk/lang/c/src/avro.h modified , text changed
Directoryavro/trunk/lang/c/src/datum.c modified , text changed
Directoryavro/trunk/lang/c/src/datum.h modified , text changed
Directoryavro/trunk/lang/c/src/datum_equal.c modified , text changed
Directoryavro/trunk/lang/c/src/datum_json.c modified , text changed
Directoryavro/trunk/lang/c/src/datum_read.c modified , text changed
Directoryavro/trunk/lang/c/src/schema.c modified , text changed
Directoryavro/trunk/lang/c/tests/generate_interop_data.c modified , text changed
Directoryavro/trunk/lang/c/tests/test_avro_data.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26