allocCtx(java.lang.Object tblCtxObj) - 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ā„¢

This method initializes the table function context for the first time with the serialized size of tblCtxObj.

A UDF can use the table function context as a scratchpad to retain data between iterations of a local table function copy.

Syntax

allocCtx(java.lang.Object tblCtxObj)

Syntax Elements

tblCtxObj
If tblCtxObj has object type fields, the UDF must initialize those fields to non-null values before calling allocCtx(). If tblCtxObj has array type fields, the UDF must initialize the array itself and each element of the array to a non-null value before calling allocCtx().
The maximum size of tblCtxObj is 64 KB.