Module Definition - Aster Execution Engine

Teradata Aster® Developer Guide

Product
Aster Execution Engine
Release Number
7.00.02
Published
July 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
xnl1494366523182.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
ffu1489104705746
lifecycle
previous
Product Category
Software

The C or C++ code of a user defined function must contain one module definition for an Aster instance to identify the entry point of the function and the interface it implements. A module definition is defined with the following macros given in FunctionModule.h:

  • SQLMR_FUNCTION_MODULE_BEGIN
  • SQLMR_FUNCTION_ENTRY
  • SQLMR_FUNCTION_MODULE_END

SQLMR_FUNCTION_MODULE_BEGIN defines a structure (entry) of type SqlmrFunctionEntry, which contains the template for the UDAF/UDSF function. SQLMR_FUNCTION_ENTRY stores the function name and initializes the UDAF/UDSF function entry.