titus.pfaast.EmitFcn

class titus.pfaast.EmitFcn(outputType)[source]

Bases: titus.fcn.Fcn

The special emit function.

__init__(outputType)
Parameters:outputType (titus.datatype.AvroType) – output type of the PFA document, which is also the signature of the emit function
genpy(paramTypes, args, pos=None)

Generate an executable Python string for this function; usually self.f["emit"].engine.emit(argument).