Implementing the GraphFunction Interface - Aster Execution Engine

Teradata Aster® Developer Guide

Product
Aster Execution Engine
Release Number
7.00.02
Published
July 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
xnl1494366523182.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
ffu1489104705746
lifecycle
previous
Product Category
Software

An Aster Graph Function must implement the GraphFunction interface, which defines these methods:

GraphFunction methods that need to be implemented
Method Description
Constructor Generates the contract.
initializeVertex() Connects edges to vertices.
operateOnVertex() Performs a local computation for a given graph vertex and graph processing iteration.
You can use this method to:
  • Read messages.
  • Update data (global data and the vertex’s data).
  • Send new messages.
  • Optionally emit output rows.
  • Optionally terminate processing for just this vertex or for the entire graph function.
emitFinalRows() Allows a vertex to emit final graph function output after graph processing iterations have completed.

This method is called per vertex and may emit 0, 1, or more rows per vertex. The number of rows emitted may be different for different vertices.

undeliverableMessageHandler() Allows the application to receive and respond to undeliverable vertex messages.