PythonFunction¶
PythonFunction is an abstraction of the metadata of a Python function of a PythonUDF.
PythonFunction is executed in a BasePythonRunner.
PythonFunction is used to create the following:
ChainedPythonFunctions
ChainedPythonFunctions is a collection of chained PythonFunctions.
Contract (Subset)¶
accumulator¶
accumulator: PythonAccumulatorV2
Used when:
BasePythonRunneris created
broadcastVars¶
broadcastVars: JList[Broadcast[PythonBroadcast]]
A collection of broadcast variables (Spark Core) with a PythonBroadcast
Used when:
WriterThreadis created
command¶
command: Seq[Byte]
Used when:
PythonRunneris requested to newWriterThreadUDFRegistrationis requested to register a Python UDF (for logging purposes only)PythonUDFRunneris requested to writeUDFs