Aggregate
Aggregate AEs are called from Aggregate SQL Functions.
Data structures
- struct NZAEAGG_HANDLE
- The Aggregate Handle. An opaque handle used with Aggregate AE functions.
- struct NzaeAggAccumulate
- The Accumulate structure.
- struct NzaeAggFieldFunctions
- Read and write record functions for Aggregation.
- struct NzaeAggFinalResult
- The Final Result structure.
- struct NzaeAggInitializeState
- The InitializeState structure.
- struct NzaeAggMerge
- The Merge structure.
- struct NzaeAggMetadata
- NzaeAggMetatadata.
- struct NzaeAggReadOnlyFieldFunctions
- Read-only record functions for Aggregation.
Functions
- void nzaeAggClose(NZAEAGG_HANDLE handle)
- Closes the handle when done.
- NzaeAggRcCode nzaeAggGetEnv(NZAEAGG_HANDLE handle, const char *name, const char **result)
- Gets the AE or system environment variable. The AE variable has precedence.
- void nzaeAggGetFirstEnvironmentEntry(NZAEAGG_HANDLE handle, NzaeEnvironmentEntry *entry)
- Returns the first environment entry.
- AeUserCode nzaeAggGetLastErrorCode(NZAEAGG_HANDLE handle)
- Gets the code for the last error that occurred.
- const char* nzaeAggGetLastErrorText(NZAEAGG_HANDLE handle)
- Gets the message text for the last error that occurred.
- const char* nzaeAggGetLibraryFullPath(NZAEAGG_HANDLE h, const char *libraryName, bool caseSensitive)
- Gets the file path for the library name.
- NzaeSharedLibraryInfo* nzaeAggGetLibraryInfo(NZAEAGG_HANDLE h)
- Returns NzaeSharedLibraryInfo for the requested Shared Library information.
- NzaeSharedLibraryInfo* nzaeAggGetLibraryProcessInfo(NZAEAGG_HANDLE h)
- Returns NzaeSharedLibraryInfo shared library information for the process. Returns NULL if the AE is not Remote. The AE system owns the memory from this call.
- bool nzaeAggGetNextEnvironmentEntry(NZAEAGG_HANDLE handle, NzaeEnvironmentEntry *entry)
- Returns the next environment entry.
- int nzaeAggGetNumberOfParameters(NZAEAGG_HANDLE h)
- Returns the number of parameters.
- const char* nzaeAggGetParameter(NZAEAGG_HANDLE h, int index)
- Returns the parameter.
- NzaeAggRcCode nzaeAggGetRuntime(NZAEAGG_HANDLE handle, NzaeRuntime *arg)
- Gets runtime information about the AE Aggregate.
- NzaeAggType nzaeAggGetType(NZAEAGG_HANDLE handle)
- Returns the Aggregation Type.
- NzaeAggRcCode nzaeAggLog(NZAEAGG_HANDLE handle, NzaeLogLevel level, const char *mes-sage)
- Logs the specified message.
- void* nzaeAggNext(NZAEAGG_HANDLE handle, NzaeAggMessageType *messageType)
- Gets the next aggregation message.
- NzaeAggRcCode nzaeAggPing(NZAEAGG_HANDLE handle)
- Indicates that the AE Aggregate is still active and not hanging.
- NzaeAggRcCode nzaeAggUpdate(NZAEAGG_HANDLE handle)
- Updates the result to the database.
- NzaeAggRcCode nzaeAggUserError(NZAEAGG_HANDLE handle, const char *_template,...)
- Indicates that the AE encountered an error condition.
Enumerations
- enum NzaeAggMessageType { NZAEAGG_NOT_SET= -2, NZAEAGG_ERROR= -1, NZAEAGG_END= 0, NZAEAGG_INITIALIZE= 1, NZAEAGG_ACCUMULATE= 2, NZAEAGG_MERGE= 3, NZAEAGG_FINAL_RESULT= 4 }
- Aggregate message types.
- enum NzaeAggRcCode { NZAEAGG_RC_ERROR= -1, NZAEAGG_RC_NORMAL= 0 }
- Return codes from nzaeAgg aggregate functions.
- enum NzaeAggType { NzaeAggUnknown, NzaeAggGrouped, NzaeAggAnalytic }
- The Aggregate Function Type.
Detailed description
Aggregate AEs are called from Aggregate SQL Functions.
Function documentation
- void nzaeAggClose(NZAEAGG_HANDLE handle)
- Closes the handle when done.
- NzaeAggRcCode nzaeAggGetEnv(NZAEAGG_HANDLE handle, const char *name, const char **result)
- Gets the AE or system environment variable. The AE variable has precedence.
- void nzaeAggGetFirstEnvironmentEntry(NZAEAGG_HANDLE handle, NzaeEnvironmen-tEntry *entry)
- Returns the first environment entry.
- AeUserCode nzaeAggGetLastErrorCode(NZAEAGG_HANDLE handle)
- Gets the code for the last error that occurred.
- const char* nzaeAggGetLastErrorText(NZAEAGG_HANDLE handle)
- Gets the message text for the last error that occurred.
- const char* nzaeAggGetLibraryFullPath(NZAEAGG_HANDLE h, const char *libraryName, bool caseSensitive)
- Gets the file path for the library name.
- NzaeSharedLibraryInfo* nzaeAggGetLibraryInfo(NZAEAGG_HANDLE h)
- Returns NzaeSharedLibraryInfo for the requested Shared Library information.
- NzaeSharedLibraryInfo* nzaeAggGetLibraryProcessInfo(NZAEAGG_HANDLE h)
- Returns NzaeSharedLibraryInfo shared library information for the process. Returns NULL if the AE is not Remote. The AE system owns the memory from this call.
- bool nzaeAggGetNextEnvironmentEntry(NZAEAGG_HANDLE handle, NzaeEnvironmentEntry *entry)
- Returns the next environment entry.
- int nzaeAggGetNumberOfParameters(NZAEAGG_HANDLE h)
- Returns the number of parameters.
- const char* nzaeAggGetParameter(NZAEAGG_HANDLE h, int index)
- Returns the parameter.
- NzaeAggRcCode nzaeAggGetRuntime(NZAEAGG_HANDLE handle, NzaeRuntime *arg)
- Gets runtime information about the AE Aggregate.
- const char* nzaeAggGetSystemLogFileName()
- Gets the AE Aggregate System Log File name.
- NzaeAggType nzaeAggGetType(NZAEAGG_HANDLE handle)
- Returns the Aggregation Type.
- NzaeAggRcCode nzaeAggLog(NZAEAGG_HANDLE handle, NzaeLogLevel level, const char *message)
- Logs the specified message.
- void* nzaeAggNext(NZAEAGG_HANDLE handle, NzaeAggMessageType *messageType)
- Gets the next aggregation message.
- NzaeAggRcCode nzaeAggPing(NZAEAGG_HANDLE handle)
- Indicates that the AE Aggregate is still active and not hanging.
- NzaeAggRcCode nzaeAggUpdate(NZAEAGG_HANDLE handle)
- Updates the result to the database.
- NzaeAggRcCode nzaeAggUserError(NZAEAGG_HANDLE handle, const char *_template,...)
- Indicates that the AE encountered an error condition.
Enumeration type documentation
- enum NzaeAggMessageType
- Aggregate message types.
- enum NzaeAggRcCode
- Return codes from nzaeAgg aggregate functions.
- enum NzaeAggType
- The Aggregate Function Type.