titus.datatype.AvroPlaceholder

class titus.datatype.AvroPlaceholder(original, forwardDeclarationParser)[source]

Bases: object

Represents a type that can’t be resolved yet because JSON objects may be streamed in an unknown order.

__init__(original, forwardDeclarationParser)
avroType

Called after titus.datatype.AvroTypeBuilder resolveTypes to get the resolved type.

jsonNode(memo=set([]))

Represent the resolved type as a Jackson node.

Parameters:memo (set of strings) – used to avoid infinite loops with recursive records
parser

The titus.datatype.ForwardDeclarationParser responsible for this placeholder.

toJson()

Represent the resolved type as a JSON string.