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

Contains the Schema classes.
A schema may be one of:
  An record, mapping field names to field value data;
  An enum, containing one of a small set of symbols;
  An array of values, all of the same schema;
  A map containing string/value pairs, each of a declared schema;
  A union of other schemas;
  A fixed sized binary object;
  A unicode string;
  A sequence of bytes;
  A 32-bit signed int;
  A 64-bit signed long;
  A 32-bit floating-point float;
  A 64-bit floating-point double; or
  A boolean.

 
Modules
       
cStringIO
odict
simplejson

 
Classes
       
__builtin__.object
Field
Schema
NamedSchema
exceptions.Exception(exceptions.BaseException)
AvroException
SchemaParseException

 
class AvroException(exceptions.Exception)
    
Method resolution order:
AvroException
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x8226dc0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
class Field(__builtin__.object)
     Methods defined here:
__eq__(self, other, seen={})
__init__(self, name, schema, defaultvalue=None)
getdefaultvalue(self)
getname(self)
getschema(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class NamedSchema(Schema)
    
Method resolution order:
NamedSchema
Schema
__builtin__.object

Methods defined here:
__hash__(self, seen=None)
__init__(self, type, name, space)
equalnames(self, other)
getname(self)
getspace(self)
namestring(self)

Methods inherited from Schema:
__eq__(self, other, seen=None)
gettype(self)

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

 
class Schema(__builtin__.object)
    Base class for all Schema classes.
 
  Methods defined here:
__eq__(self, other, seen=None)
__hash__(self, seen=None)
__init__(self, type)
gettype(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SchemaParseException(AvroException)
    
Method resolution order:
SchemaParseException
AvroException
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors inherited from AvroException:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x8226dc0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
Functions
       
parse(json_string)
Constructs the Schema from the json text.
stringval(schm)
Returns the string representation of the schema instance.

 
Data
        ARRAY = 8
BOOLEAN = 6
BYTES = 1
DOUBLE = 5
ENUM = 13
FIXED = 11
FLOAT = 4
INT = 2
LONG = 3
MAP = 9
NULL = 7
RECORD = 12
STRING = 0
UNION = 10