Package au.csiro.pathling.sql.udf
Class SqlFunctionRegistrar
java.lang.Object
au.csiro.pathling.sql.udf.SqlFunctionRegistrar
- All Implemented Interfaces:
SparkConfigurer
A spark configurer that registers user defined functions in the sessions.
-
Constructor Summary
ConstructorsConstructorDescriptionSqlFunctionRegistrar(List<SqlFunction1<?, ?>> sqlFunction1, List<SqlFunction2<?, ?, ?>> sqlFunction2, List<SqlFunction3<?, ?, ?, ?>> sqlFunction3, List<SqlFunction4<?, ?, ?, ?, ?>> sqlFunction4, List<SqlFunction5<?, ?, ?, ?, ?, ?>> sqlFunction5) Creates a new SqlFunctionRegistrar with the specified SQL functions. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(SparkSession spark) Configure some aspect ofSparkSession
-
Constructor Details
-
SqlFunctionRegistrar
public SqlFunctionRegistrar(@Nonnull List<SqlFunction1<?, ?>> sqlFunction1, @Nonnull List<SqlFunction2<?, ?, ?>> sqlFunction2, @Nonnull List<SqlFunction3<?, ?, ?, ?>> sqlFunction3, @Nonnull List<SqlFunction4<?, ?, ?, ?, ?>> sqlFunction4, @Nonnull List<SqlFunction5<?, ?, ?, ?, ?, ?>> sqlFunction5) Creates a new SqlFunctionRegistrar with the specified SQL functions.- Parameters:
sqlFunction1- list of single-parameter SQL functionssqlFunction2- list of two-parameter SQL functionssqlFunction3- list of three-parameter SQL functionssqlFunction4- list of four-parameter SQL functionssqlFunction5- list of five-parameter SQL functions
-
-
Method Details
-
configure
Description copied from interface:SparkConfigurerConfigure some aspect ofSparkSession- Specified by:
configurein interfaceSparkConfigurer- Parameters:
spark- theSparkSessionto configure.
-