Skip to content

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

PythonAccumulatorV2

Used when:

broadcastVars

broadcastVars: JList[Broadcast[PythonBroadcast]]

A collection of broadcast variables (Spark Core) with a PythonBroadcast

Used when:

  • WriterThread is created

command

command: Seq[Byte]

Used when:

Implementations