Restart is a user-provided function that performs any functionality when an operator is restarted by the infrastructure.
#include <pxoper.h> PXSTC_Code PX_Restart(PX_OperatorHandle operator, PX_LongInt phase);
where the following is true:
|operator||input||Name of the operator handle to be restarted.|
|phase||input||Current processing phase number|
The following Restart function status codes are defined by the Teradata PT operator interface.
|PXSTC_EndMethod||Successful restart of the operator.|
|PXSTC_NextPhase||Proceed with the next processing phase.|
|PXSTC_SamePhase||Continue with the current processing phase.|
Define additional Restart function status codes as required to support your operator.
Consider the following when defining the Restart function.
|Status||If the function status is PXSTC_EndMethod, the restart operation was successfully established by this function. See also the Checkpoint function.|