titus.datatype.AvroUnion

class titus.datatype.AvroUnion(types)[source]

Bases: titus.datatype.AvroType

Avro “union” type for tagged unions.

__init__(types)

Create an AvroUnion manually.

Parameters:types (list of titus.datatype.AvroType) – possible types for this union in the order of their resolution
jsonNode(memo)
name
types

Get the possible types for this union as a list of titus.datatype.AvroType.