Skip to content

Plugins

A plugin is a small JAR that adds one ability to the platform, for example one Spark SQL function. The engine finds plugins when it starts, so adding a capability means adding a JAR, not changing the engine.

Today the plugins are user-defined functions (UDFs). Each one adds a function that pipelines can call by name. They all follow the same contract, described in core-udf.

ContractReleased

core-udf

The SparkUdf interface every function plugin implements.

FunctionReleased

addition-udf

ADD(array)

ADD: the sum of the numbers in an array.

FunctionPlanned

subtraction-udf

SUB(array)

SUB: subtracts the later numbers from the first.

FunctionPlanned

multiplication-udf

MUL(array)

MUL: the product of the numbers in an array.

FunctionPlanned

division-udf

DIV(array)

DIV: divides the first number by the later ones.

Planned plugins exist in the source tree but are not published yet.

Add the contract once and then any plugin you need. Both are on Maven Central under com.camelioflux.plugins.udf. See Use a plugin for the full steps.

Follow Write a plugin.