Event is a user-provided function that allows operators to perform event processing or notification.
#include <pxoper.h> PXSTC_Code PX_Event(PX_OperatorHandle operator, PX_LongInt phase);
where the following is true:
|operator||input||Operator handle that is associated with the Event function.|
|phase||input||Current processing phase number.|
The following Event function status codes are defined by the Teradata PToperator interface.
|PXSTC_EndMethod||Successful execution of the operator.
This status condition indicates that the event was successfully processed by this function.
|PXSTC_NextPhase||Proceed with the next processing phase.|
|PXSTC_SamePhase||Continue with the current processing phase.|
Define additional Event function status codes as required to support your operator.
Consider the following when using the Event function.
|Description||This function requires the caller to user the PutAttribute function to specify the event to be processed by the operator.
Also see Put Attribute.