Context[] Parameter - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
rin1593638965306.ditamap
dita:ditavalPath
rin1593638965306.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantageā„¢

As discussed in Aggregate UDFs, the parameter list includes an array of com.teradata.fnc.Context objects.

The Context class provides methods that are useful for aggregate functions.

Method Description
initCtx() Allocates and initializes the aggregate intermediate storage area.

An aggregate UDF uses this method in the Phase.AGR_INIT phase of aggregation.

getBytes() Returns data that was stored in one of two intermediate aggregate storage areas.
getObject()
setBytes() Stores intermediate results specified by obj into the aggregate storage area.
setObject()