ScalarFunction

class vertica_sdk.ScalarFunction

Interface for a user-defined scalar function. A scalar function produces a single value for each row of input data.

destroy

Perform per instance destruction.

processBlock

Invoke the scalar function on a batch of rows contained in arg_reader, a vertica_sdk.BlockReader object.

Output is written to res_writer, a vertica_sdk.BlockWriter object.

setup

Perform per instance initialization.