Module traits

Source
Expand description

Module containing traits to be implemented by a user

A basic UDF just needs to implement BasicUdf. An aggregate UDF needs to implement both BasicUdf and AggregateUdf.

Structs§

Init
Typestate marker for the initialization phase
Process
Typestate marker for the processing phase

Traits§

AggregateUdf
This trait must be implemented if this function performs aggregation.
BasicUdf
This trait specifies the functions needed for a standard (non-aggregate) UDF
UdfState
A state of the UDF, representing either Init or Process