titus.datatype.AvroEnum

class titus.datatype.AvroEnum(symbols, name=None, namespace=None)[source]

Bases: titus.datatype.AvroIdentifier, titus.datatype.AvroCompiled

Avro “enum” type for a small collection of string-labeled values.

__init__(symbols, name=None, namespace=None)

Create an AvroEnum manually.

Parameters:
  • symbols (list of strings) – collection of labels
  • name (string or NoneType) – name or an auto-generated name
  • namespace (string or NoneType) – namespace or no namespace
jsonNode(memo)
symbols

Allowed values for instances of this type.