17.00 - Restart - Parallel Transporter

Teradata® Parallel Transporter Operator Programmer Guide

prodname
Parallel Transporter
vrm_release
17.00
created_date
June 2020
category
Programming Reference
featnum
B035-2435-220K

Purpose

Restart is a user-provided function that performs any functionality when an operator is restarted by the infrastructure.

Structure

#include <pxoper.h>
PXSTC_Code PX_Restart(PX_OperatorHandle  operator, PX_LongInt phase);

where the following is true:

Parameter Function Specification
operator input Name of the operator handle to be restarted.
phase input Current processing phase number

Return Codes

The following Restart function status codes are defined by the Teradata PT operator interface.

Status Code Signifies
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.

Usage Notes

Consider the following when defining the Restart function.

Topic Usage Notes
Status If the function status is PXSTC_EndMethod, the restart operation was successfully established by this function. See also the Checkpoint function.