Class UDFRegistration

Object
org.apache.spark.sql.api.UDFRegistration
org.apache.spark.sql.UDFRegistration
All Implemented Interfaces:
org.apache.spark.internal.Logging

public class UDFRegistration extends UDFRegistration implements org.apache.spark.internal.Logging
Functions for registering user-defined functions. Use SparkSession.udf to access this:


   spark.udf
 

Since:
1.3.0
  • 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