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

Define Record schema and protocol classes at runtime. This can be used 
to invoke the methods on Protocol proxy directly.

 
Modules
       
avro.genericio
avro.io
avro.schema

 
Classes
       
avro.genericio.DatumReader(avro.io.DatumReaderBase)
ReflectDatumReader
avro.genericio.DatumWriter(avro.io.DatumWriterBase)
ReflectDatumWriter

 
class ReflectDatumReader(avro.genericio.DatumReader)
    DatumReader for arbitrary python classes.
 
 
Method resolution order:
ReflectDatumReader
avro.genericio.DatumReader
avro.io.DatumReaderBase
__builtin__.object

Methods defined here:
__init__(self, pkgname, schm=None)
addfield(self, record, name, value)
createrecord(self, schm)

Methods inherited from avro.genericio.DatumReader:
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 ReflectDatumWriter(avro.genericio.DatumWriter)
    DatumWriter for arbitrary python classes.
 
 
Method resolution order:
ReflectDatumWriter
avro.genericio.DatumWriter
avro.io.DatumWriterBase
__builtin__.object

Methods defined here:
__init__(self, pkgname, schm=None)
resolveunion(self, schm, datum)
writerecord(self, schm, datum, encoder)

Methods inherited from avro.genericio.DatumWriter:
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)
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
       
gettype(recordschm, pkgname, base=<type 'object'>)
Returns the type with classname as recordschm name and pkg name as pkgname. 
If type does not exist creates a new type.
validate(schm, pkgname, object)
Returns True if a python datum matches a schema.