Uploading Custom Functions to SAM
Once you have created and built the UDAF, upload it to SAM so that it is available in the Aggregate processor.
- From the left-hand menu, select Configuration, then Application Resources.
- Click the UDF tab. You use the UDF tab to handle both UDFs and UDAFs.
- Click the Add icon to display the Add UDF.
-
Supply the following information, and click Ok.
-
Name – This is the internal name of the UDAF. This needs to be unique and should not conflict with any of the built in aggregate functions.
-
Display Name – This is what gets displayed in the list of aggregate functions in the Aggregate processor UI.
-
Description – This can be any textual description of the function to assist the user.
-
Type – This should be AGGREGATE for UDAFs, or FUNCTION for UDFs.
-
Classname – This is the full qualified class name of the UDAF that gets packaged in the Jar.
-
UDF JAR – Browse and select the jar file that you built using the maven project.
-
Your new UDF or UDAF displays in the list of available functions.