16.20 - getUDFOutputGeometry() - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

Purpose

Retrieves an ST_Geometry object representing the return value of a Java UDF that returns an ST_Geometry. This method can be called only from a scalar or aggregate Java UDF. If the method is called from an aggregate Java UDF, it may only be called in the Phase.AGR_FINAL execution phase.

Syntax

public com.teradata.fnc.ST_Geometry getUDFOutputGeometry()
                      throws SQLException

Return Value

A com.teradata.fnc.ST_Geometry object that represents the return ST_Geometry of the Java UDF.

Exceptions

Throws SQLException if a database access error occurs. Returns the following database specific error code: 9747 (ERRUDFJAVAGEOM)<Failed to retrieve ST_Geometry object>.