Restart - Parallel Transporter

Teradata Parallel Transporter Operator Programmer Guide

Product
Parallel Transporter
Release Number
16.20
Published
October 2018
Language
English (United States)
Last Update
2018-10-10
dita:mapPath
vxb1527114222350.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-2435
lifecycle
previous
Product Category
Teradata Tools and Utilities

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.