Shaper and Sizer
Shapers are optionally called for Table Function AEs. Sizers are optionally called for Scalar Function AEs.
Data structures
- struct NZAESHP_HANDLE
- The Shaper Handle. An opaque handle used with Shaper and Sizer AE functions.
Functions
- NzaeShpRcCode nzaeShpAddOutputColumn(NZAESHP_HANDLE handle, NzudsDataType dataType, const char *columnName)
- Adds Non string/numeric Output Columns.
- NzaeShpRcCode nzaeShpAddOutputColumnNumeric(NZAESHP_HANDLE handle, NzudsDataType data-Type, const char *columnName, int precision, int scale)
- Adds Numeric Output Columns.
- NzaeShpRcCode nzaeShpAddOutputColumnString(NZAESHP_HANDLE handle, NzudsDataType dataType, const char *columnName, int size)
- Adds String Output Columns.
- void nzaeShpClose(NZAESHP_HANDLE handle)
- Closes the handle when done.
- NzaeShpRcCode nzaeShpGetEnv(NZAESHP_HANDLE handle, const char *name, const char **result)
- Gets an AE or system environment variable. AE has precedence.
- void nzaeShpGetFirstEnvironmentEntry(NZAESHP_HANDLE handle, NzaeEnvironmentEntry *entry)
- Returns the first environment entry.
- NzaeShpRcCode nzaeShpGetInputColumn(NZAESHP_HANDLE handle, int index, NzudsData **data)
- Gets the input column data
- AeUserCode nzaeShpGetLastErrorCode(NZAESHP_HANDLE handle)
- Gets the code for last error that occurred.
- const char* nzaeShpGetLastErrorText(NZAESHP_HANDLE handle)
- Gets the message text for last error that occurred.
- const char* nzaeShpGetLibraryFullPath(NZAESHP_HANDLE h, const char *libraryName, bool caseSensitive)
- Gets the file path for a library name.
- NzaeSharedLibraryInfo* nzaeShpGetLibraryInfo(NZAESHP_HANDLE h)
- Returns NzaeSharedLibraryInfo of the shared library for this request.
- NzaeSharedLibraryInfo* nzaeShpGetLibraryProcessInfo(NZAESHP_HANDLE h)
- Return NzaeSharedLibraryInfo of the shared library for the process. Returns NULL if the AE is not remote.
- NzaeShpRcCode nzaeShpGetMetadata(NZAESHP_HANDLE handle, NzaeShpMetadata *arg)
- Gets metadata about the AE Shaper.
- bool nzaeShpGetNextEnvironmentEntry(NZAESHP_HANDLE handle, NzaeEnvironmentEntry *entry)
- Returns the next environment entry.
- int nzaeShpGetNumberOfParameters(NZAESHP_HANDLE h)
- Returns the number of parameters.
- int nzaeShpGetNumOutputColumns(NZAESHP_HANDLE handle)
- Returns the number of output columns added by the user.
- NzaeShpRcCode nzaeShpGetOutputColumnInfo(NZAESHP_HANDLE handle, int index, NzaeSh-pOutputColumnInfo *info)
- Gets information about an output column added by the user.
- const char* nzaeShpGetParameter(NZAESHP_HANDLE h, int index)
- Returns a parameter.
- NzaeShpRcCode nzaeShpGetRuntime(NZAESHP_HANDLE handle, NzaeRuntime *arg)
- Gets runtime information about the AE Shaper.
- const char* nzaeShpGetSystemLogFileName(NZAESHP_HANDLE handle)
- Gets the AE System Log File name.
- NzaeShpRcCode nzaeShpGetUdfReturnType(NZAESHP_HANDLE handle, NzudsDataType *data-Type)
- For a UDF only, gets the predetermined single return data type.
- NzaeShpRcCode nzaeShpLog(NZAESHP_HANDLE handle, NzaeLogLevel level, const char *mes-sage)
- Logs the specified message.
- NzaeShpRcCode nzaeShpPing(NZAESHP_HANDLE handle)
- Indicates that the AE Shaper is still active and not hanging.
- NzaeShpRcCode nzaeShpSystemCatalogIsUpper(NZAESHP_HANDLE handle, bool *result)
- Returns TRUE if the default for system catalog names is upper case.
- NzaeShpRcCode nzaeShpUpdate(NZAESHP_HANDLE handle)
- Updates the shape and size information in the Netezza system.
- NzaeShpRcCode nzaeShpUserError(NZAESHP_HANDLE handle, const char *_template,...)
- Indicates that this AE has encountered an error condition.
Enumerations
- enum NzaeShpRcCode { NZAESHP_RC_ERROR= -1, NZAESHP_RC_NORMAL= 0 }
- Return codes from nzaeShp Shaper functions.
Detailed description
Shapers are optionally called for Table Function AEs. Sizers are optionally called for Scalar Function AEs.
Function documentation
- NzaeShpRcCode nzaeShpAddOutputColumn(NZAESHP_HANDLE handle, NzudsDataType dataType, const char *columnName)
- Adds Non string/numeric Output Columns.
- NzaeShpRcCode nzaeShpAddOutputColumnNumeric(NZAESHP_HANDLE handle, NzudsDataType data-Type, const char *columnName, int precision, int scale)
- Adds Numeric Output Columns.
- NzaeShpRcCode nzaeShpAddOutputColumnString(NZAESHP_HANDLE handle, NzudsDataType dataType, const char *columnName, int size)
- Adds String Output Columns.
- void nzaeShpClose(NZAESHP_HANDLE handle)
- Closes the handle when done.
- NzaeShpRcCode nzaeShpGetEnv(NZAESHP_HANDLE handle, const char *name, const char **result)
- Gets an AE or system environment variable. AE has precedence.
- void nzaeShpGetFirstEnvironmentEntry(NZAESHP_HANDLE handle, NzaeEnvironmentEntry *entry)
- Returns the first environment entry.
- NzaeShpRcCode nzaeShpGetInputColumn(NZAESHP_HANDLE handle, int index, NzudsData **data)
- Gets the input column data
- AeUserCode nzaeShpGetLastErrorCode(NZAESHP_HANDLE handle)
- Gets the code for last error that occurred.
- const char* nzaeShpGetLastErrorText(NZAESHP_HANDLE handle)
- Gets the message text for last error that occurred.
- const char* nzaeShpGetLibraryFullPath(NZAESHP_HANDLE h, const char *libraryName, bool caseSensitive)
- Gets the file path for a library name.
- NzaeSharedLibraryInfo* nzaeShpGetLibraryInfo(NZAESHP_HANDLE h)
- Returns NzaeSharedLibraryInfo of the shared library for this request.
- NzaeSharedLibraryInfo* nzaeShpGetLibraryProcessInfo(NZAESHP_HANDLE h)
- Return NzaeSharedLibraryInfo of the shared library for the process. Returns NULL if the AE is not remote.
- NzaeShpRcCode nzaeShpGetMetadata(NZAESHP_HANDLE handle, NzaeShpMetadata *arg)
- Gets metadata about the AE Shaper.
- bool nzaeShpGetNextEnvironmentEntry(NZAESHP_HANDLE handle, NzaeEnvironmentEntry *entry)
- Returns the next environment entry.
- int nzaeShpGetNumberOfParameters(NZAESHP_HANDLE h)
- Returns the number of parameters.
- int nzaeShpGetNumOutputColumns(NZAESHP_HANDLE handle)
- Returns the number of output columns added by the user.
- NzaeShpRcCode nzaeShpGetOutputColumnInfo(NZAESHP_HANDLE handle, int index, NzaeSh-pOutputColumnInfo *info)
- Gets information about an output column added by the user.
- const char* nzaeShpGetParameter(NZAESHP_HANDLE h, int index)
- Returns a parameter.
- NzaeShpRcCode nzaeShpGetRuntime(NZAESHP_HANDLE handle, NzaeRuntime *arg)
- Gets runtime information about the AE Shaper.
- const char* nzaeShpGetSystemLogFileName(NZAESHP_HANDLE handle)
- Gets the AE System Log File name.
- NzaeShpRcCode nzaeShpGetUdfReturnType(NZAESHP_HANDLE handle, NzudsDataType *data-Type)
- For a UDF only, gets the predetermined single return data type.
- NzaeShpRcCode nzaeShpLog(NZAESHP_HANDLE handle, NzaeLogLevel level, const char *mes-sage)
- Logs the specified message.
- NzaeShpRcCode nzaeShpPing(NZAESHP_HANDLE handle)
- Indicates that the AE Shaper is still active and not hanging.
- NzaeShpRcCode nzaeShpSystemCatalogIsUpper(NZAESHP_HANDLE handle, bool *result)
- Returns TRUE if the default for system catalog names is upper case.
- NzaeShpRcCode nzaeShpUpdate(NZAESHP_HANDLE handle)
- Updates the shape and size information in the Netezza system.
- NzaeShpRcCode nzaeShpUserError(NZAESHP_HANDLE handle, const char *_template,...)
- Indicates that this AE has encountered an error condition.
Enumeration type documentation
- enum NzaeShpRcCode
- Return codes from nzaeShp Shaper functions.