15.00 - Description - Parallel Transporter

Teradata Parallel Transporter Operator Programmer Guide

prodname
Parallel Transporter
vrm_release
15.00
category
Programming Reference
featnum
B035-2435-034K

Description

The Teradata PT operator interface is defined by the functions of the PX_Operator class, which are either user-provided control functions or service functions.

In the following example, functions with a prefix of “virtual” and ending with “=0” are user-provided control functions that must be overridden by each interfacing operator. All other functions are service functions that provide the operational interface to the Teradata PT infrastructure.

{
     public:
         virtual PXSTC_Code PX_Initiate() = 0;
         virtual PXSTC_Code PX_Terminate() = 0;	
         virtual PXSTC_Code PX_Execute() = 0;
         virtual PXSTC_Code PX_Checkpoint() = 0;
         virtual PXSTC_Code PX_Restart() = 0;
         virtual PXSTC_Code PX_Event() = 0;
         PXSTC_Code PX_GetAttribute();
         PXSTC_Code PX_PutAttribute();
         PXSTC_Code PX_AllocateStorage();
         PXSTC_Code PX_FreeStorage();
         PXSTC_Code PX_CreateGlobalVar();
         PXSTC_Code PX_DeleteGlobalVar();
         PXSTC_Code PX_ReadGlobalVar();
         PXSTC_Code PX_UpdateGlobalVar(); 			
         PXSTC_Code PX_SetErrorMessage();
         PXSTC_Code PX_ReadCheckpointRecord();	
         PXSTC_Code PX_WriteCheckpointRecord();	
         PXSTC_Code PX_BeginTableSchemaDefinition();
         PXSTC_Code PX_FinalizeTableSchemaDefinition();
         PXSTC_Code PX_CreateColumnSchema();
         PXSTC_Code PX_GetTableSchemaList();
         PXSTC_Code PX_GetColumnSchemaList();		
         PXSTC_Code PX_GetColumnSchema();
         PXSTC_Code PX_GetColumnValue();
         PXSTC_Code PX_PutColumnValue();
         PXSTC_Code PX_GetRow();
         PXSTC_Code PX_PutRow();
         PXSTC_Code PX_LogInit();
         PXSTC_Code PX_LogWrite();
         PXSTC_Code PX_LogTerminate();
         PXSTC_Code PX_SetLogError();
  }