Function
Function AEs are called from Scalar or Table SQL Functions.
Data structuer
- struct NZAE_HANDLE
- The Function Handle. An opaque handle used with Function AE functions.
Functions
- void nzaeClose(NZAE_HANDLE handle)
- Closes the handle when done.
- NzaeRcCode nzaeDone(NZAE_HANDLE handle)
- Indicates that the AE is finishing and does not get any more rows or output any more results.
- NzaeRcCode nzaeGetEnv(NZAE_HANDLE handle, const char *name, const char **result
- Gets an AE or system environment variable. The AE has precedence.
- void nzaeGetFirstEnvironmentEntry(NZAE_HANDLE handle, NzaeEnvironmentEntry *entry)
- Returns the first environment entry.
- NzaeRcCode nzaeGetInputColumn(NZAE_HANDLE handle, int index, NzudsData **data)
- Gets input column data. The index is zero-based.
- AeUserCode nzaeGetLastErrorCode(NZAE_HANDLE handle)
- Gets the code for the last error that occurred.
- const char* nzaeGetLastErrorText(NZAE_HANDLE handle)
- Get the message text for the last error that occurred.
- const char* nzaeGetLibraryFullPath(NZAE_HANDLE h, const char *libraryName, bool caseSens-itive)
- Gets the file path for a library name.
- NzaeSharedLibraryInfo* nzaeGetLibraryInfo(NZAE_HANDLE h)
- Returns NzaeSharedLibraryInfo of the shared library for the request.
- NzaeSharedLibraryInfo* nzaeGetLibraryProcessInfo(NZAE_HANDLE h)
- Returns NzaeSharedLibraryInfo of the shared library for the process.
- NzaeRcCode nzaeGetMetadata(NZAE_HANDLE handle, NzaeMetadata *arg)
- Gets metadata about the AE.
- NzaeRcCode nzaeGetNext(NZAE_HANDLE handle)
- Gets the next input row; returns NZAE_RC_END at End of File.
- bool nzaeGetNextEnvironmentEntry(NZAE_HANDLE handle, NzaeEnvironmentEntry *entry)
- Returns the next environment entry.
- NzaeRcCode nzaeGetNextPartition(NZAE_HANDLE handle)
- Gets the next partition; returns NZAE_RC_END at End of Partition.
- int nzaeGetNumberOfParameters(NZAE_HANDLE h)
- Returns the number of parameters.
- const char* nzaeGetParameter(NZAE_HANDLE h, int
- Returns a parameter.
- NzaeRcCode nzaeGetRuntime(NZAE_HANDLE handle, NzaeRuntime *arg)
- Gets runtime information about the AE.
- NzaeRcCode nzaeLog(NZAE_HANDLE handle, NzaeLogLevel level, const char *message)
- Logs the specified message.
- NzaeRcCode nzaeOutputResult(NZAE_HANDLE handle)
- Outputs a result row containing the current column values.
- NzaeRcCode nzaePing(NZAE_HANDLE handle)
- Indicates that the AE is still active and not hanging.
- NzaeRcCode nzaeUserError(NZAE_HANDLE handle, const char *_template,...)
- Indicates this AE has encountered an error condition.
Enumeration
- enum NzaeCorrelationType { NzaeUnknownCorrelationType= 0, NzaeUncorrelated= 1, NzaeInnerCorrelation= 2, NzaeLeftCorrelation= 3 }
- Specialized information about how this AE is being invoked.
- enum NzaeRcCode { NZAE_RC_ERROR= -1, NZAE_RC_NORMAL= 0, NZAE_RC_END= 1 }
- Return codes from nzae functions.
Detailed description
Function AEs are called from Scalar or Table SQL Functions.
Function documentation
- void nzaeClose(NZAE_HANDLE handle)
- Closes the handle when done.
- NzaeRcCode nzaeDone(NZAE_HANDLE handle)
- Indicates that the AE is finishing and does not get any more rows or output any more results.
- NzaeRcCode nzaeGetEnv(NZAE_HANDLE handle, const char *name, const char **result)
- Indicates that the AE is finishing and does not get any more rows or output any more results.
- void nzaeGetFirstEnvironmentEntry(NZAE_HANDLE handle, NzaeEnvironmentEntry *entry)
- Returns the first environment entry.
- NzaeRcCode nzaeGetInputColumn(NZAE_HANDLE handle, int index, NzudsData **data)
- Gets input column data. The index is zero-based.
- AeUserCode nzaeGetLastErrorCode(NZAE_HANDLE handle)
- Gets the code for the last error that occurred.
- const char* nzaeGetLastErrorText(NZAE_HANDLE handle)
- Get the message text for the last error that occurred.
- const char* nzaeGetLibraryFullPath(NZAE_HANDLE h, const char *libraryName, bool caseSensitive)
- Gets the file path for a library name.
- NzaeSharedLibraryInfo* nzaeGetLibraryInfo(NZAE_HANDLE h)
- Returns NzaeSharedLibraryInfo of the shared library for the request.
- NzaeSharedLibraryInfo* nzaeGetLibraryProcessInfo(NZAE_HANDLE h)
- Returns NzaeSharedLibraryInfo of the shared library for the process.
- NzaeRcCode nzaeGetMetadata(NZAE_HANDLE handle, NzaeMetadata *arg)
- Gets metadata about the AE.
- NzaeRcCode nzaeGetNext(NZAE_HANDLE handle)
- Gets the next input row; returns NZAE_RC_END at End of File.
- bool nzaeGetNextEnvironmentEntry(NZAE_HANDLE handle, NzaeEnvironmentEntry *entry)
- Returns the next environment entry.
- NzaeRcCode nzaeGetNextPartition(NZAE_HANDLE handle)
- Gets the next partition; returns NZAE_RC_END at End of Partition.
- int nzaeGetNumberOfParameters(NZAE_HANDLE h)
- Returns the number of parameters.
- const char* nzaeGetParameter(NZAE_HANDLE h, int index)
- Returns a parameter.
- NzaeRcCode nzaeGetRuntime(NZAE_HANDLE handle, NzaeRuntime *arg)
- Gets runtime information about the AE.
- NzaeRcCode nzaeLog(NZAE_HANDLE handle, NzaeLogLevel level, const char *message)
- Logs the specified message.
- NzaeRcCode nzaeOutputResult(NZAE_HANDLE handle)
- Outputs a result row containing the current column values.
- NzaeRcCode nzaePing(NZAE_HANDLE handle)
- Indicates that the AE is still active and not hanging.
- NzaeRcCode nzaeUserError(NZAE_HANDLE handle, const char *_template,...)
- Indicates this AE has encountered an error condition.
Enumeration type documentation
- enum NzaeCorrelationType
- Specialized information about how this AE is being invoked.
- enum NzaeRcCode
- Return codes from nzae functions.