Operate Function: operateOnSomeRows() or operateOnPartition() - 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

A RowFunction must implement operateOnSomeRows(), while a PartitionFunction must implement operateOnPartition(). The only difference between the two is that operateOnPartition() includes an argument that describes the current partition. Both these functions are given a RowIterator, which allows iteration through all the rows that the function sees. Moreover, they are provided with a RowEmitter, which allows the function to returns rows to the database.

Below is an example of a simple function that tokenizes its input into rows. This example and the rest of the examples in this section are part of the Aster SQL-MapReduce SDK bundle.