avro.genericio
index
/home/cutting/src/avro/test/src/py/avro/genericio.py

Generic representation for data. 
Represent Schema data with generic python types.
 
Uses the following mapping:
  * Schema records are implemented as dict.
  * Schema arrays are implemented as list.
  * Schema maps are implemented as dict.
  * Schema strings are implemented as unicode.
  * Schema bytes are implemented as str.
  * Schema ints are implemented as int.
  * Schema longs are implemented as long.
  * Schema floats are implemented as float.
  * Schema doubles are implemented as float.
  * Schema booleans are implemented as bool.

 
Modules
       
avro.io
avro.schema

 
Classes
       
avro.io.DatumReaderBase(__builtin__.object)
DatumReader
avro.io.DatumWriterBase(__builtin__.object)
DatumWriter

 
class DatumReader(avro.io.DatumReaderBase)
    DatumReader for generic python objects.
 
 
Method resolution order:
DatumReader
avro.io.DatumReaderBase
__builtin__.object

Methods defined here:
__init__(self, actual=None, expected=None)
addfield(self, record, name, value)
createrecord(self, schm)
read(self, decoder)
readarray(self, actual, expected, decoder)
readdata(self, actual, expected, decoder)
readenum(self, actual, expected, decoder)
readfixed(self, actual, expected, decoder)
readmap(self, actual, expected, decoder)
readrecord(self, actual, expected, decoder)
setschema(self, schm)
skiparray(self, schm, decoder)
skipdata(self, schm, decoder)
skipenum(self, schm, decoder)
skipfixed(self, schm)
skipmap(self, schm, decoder)
skiprecord(self, schm, decoder)
skipunion(self, schm, decoder)

Data descriptors inherited from avro.io.DatumReaderBase:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class DatumWriter(avro.io.DatumWriterBase)
    DatumWriter for generic python objects.
 
 
Method resolution order:
DatumWriter
avro.io.DatumWriterBase
__builtin__.object

Methods defined here:
__init__(self, schm=None)
resolveunion(self, schm, datum)
setschema(self, schm)
write(self, datum, encoder)
writearray(self, schm, datum, encoder)
writedata(self, schm, datum, encoder)
writeenum(self, schm, datum, encoder)
writemap(self, schm, datum, encoder)
writerecord(self, schm, datum, encoder)
writeunion(self, schm, datum, encoder)

Data descriptors inherited from avro.io.DatumWriterBase:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
validate(schm, object)
Returns True if a python datum matches a schema.