Package au.csiro.pathling.sql.udf
Class AbstractUDFRegistrar
- java.lang.Object
-
- au.csiro.pathling.sql.udf.AbstractUDFRegistrar
-
- All Implemented Interfaces:
SparkConfigurer
public abstract class AbstractUDFRegistrar extends Object implements SparkConfigurer
A base spark configurer that registers user defined functions in the sessions.- Author:
- Piotr Szul
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractUDFRegistrar.UDFRegistrar
-
Constructor Summary
Constructors Constructor Description AbstractUDFRegistrar()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidconfigure(SparkSession spark)Configure some aspect ofSparkSessionprotected abstract voidregisterUDFs(AbstractUDFRegistrar.UDFRegistrar udfRegistrar)Override to perform the actual registration of SqlFunctionXXX instances.
-
-
-
Method Detail
-
configure
public void configure(@Nonnull SparkSession spark)Description copied from interface:SparkConfigurerConfigure some aspect ofSparkSession- Specified by:
configurein interfaceSparkConfigurer- Parameters:
spark- theSparkSessionto configure.
-
registerUDFs
protected abstract void registerUDFs(@Nonnull AbstractUDFRegistrar.UDFRegistrar udfRegistrar)Override to perform the actual registration of SqlFunctionXXX instances.- Parameters:
udfRegistrar- the helper to use to register the UDFs.
-
-