FNC_GetDatasetInfo Function | C Library Functions | Teradata Vantage - FNC_GetDatasetInfo - 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ā„¢

Retrieves information about a particular DATASET data type instance, such as the maximum length, inline length, and storage format.

Syntax

void
FNC_GetDatasetInfo ( DATASET_HANDLE       datasetHandle,
                     int*                 maxLength,
                     int*                 inLineLength,
                     int*                 schemaLength,
                     int*                 rawDataLength,
                     dataset_storage_et*  storageFormat,
                     boolean_t*           dataLob,
                     boolean_t*           schemaLob)

Syntax Elements

datasetHandle
A handle to a DATASET data type instance that is defined to be an input parameter to an external routine.
maxLength
Return parameter.

Specifies the maximum possible length of this DATASET data type instance in bytes.

inLineLength
Return parameter.

Specifies the inline length of this DATASET data type instance in bytes.

schemaLength
Return parameter.

Specifies the length of the schema for this DATASET data type instance in terms of the number of bytes in the UTF-8 encoding.

rawDataLength
Return parameter.

Specifies the length of the data for this DATASET data type instance.

storageFormat
Return parameter.

Specifies the storage format of this DATASET data type instance based on the dataset_storage_et enumerated type defined in sqltypes_td.h.

dataLob
Return parameter.

If this DATASET type instance stores its value as a LOB, this will be set to 1. Otherwise this value will be set to 0.

schemaLob
Return parameter.

If this DATASET type instance stores its schema as a LOB, this will be set to 1. Otherwise this value will be set to 0.