Context[] Parameter - Analytics Database - Teradata Vantage

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
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()