allocCtx(java.lang.Object tblCtxObj) - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
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.

Argument

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.