calculateShape()
Specifies the shape of the table that is returned by the UDTF.
Syntax
The method has the
following syntax:
virtual void calculateShape(UdxOutputShaper *shaper)
Description
UDTFs that return a generic table size (that is, that specify RETURNS GENERIC TABLE) must include a calculateShape() method to define the shape and content of the return table.
The UdxOutputShaper object has methods that you can use to retrieve information about the input to the table function and to set the shape of the output.