Package org.apache.spark.sql
Class UDFRegistration
Object
org.apache.spark.sql.api.UDFRegistration
org.apache.spark.sql.UDFRegistration
- All Implemented Interfaces:
org.apache.spark.internal.Logging
Functions for registering user-defined functions. Use
SparkSession.udf
to access this:
spark.udf
- Since:
- 1.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.spark.internal.Logging
org.apache.spark.internal.Logging.LogStringContext, org.apache.spark.internal.Logging.SparkShellLoggingFilter
-
Method Summary
Modifier and TypeMethodDescriptionregister
(String name, UserDefinedAggregateFunction udaf) Deprecated.this method and the use of UserDefinedAggregateFunction are deprecated.Methods inherited from class org.apache.spark.sql.api.UDFRegistration
register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register, register
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.spark.internal.Logging
initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logName, LogStringContext, logTrace, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, logWarning, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContext
-
Method Details
-
register
Deprecated.this method and the use of UserDefinedAggregateFunction are deprecated. Aggregator[IN, BUF, OUT] should now be registered as a UDF via the functions.udaf(agg) method.Registers a user-defined aggregate function (UDAF).- Parameters:
name
- the name of the UDAF.udaf
- the UDAF needs to be registered.- Returns:
- the registered UDAF.
- Since:
- 1.5.0
-