Friday, June 1, 2012

Pentaho Kettle User Defined Java Class: Creating Multiple Output Rows For Each Input Row

To do that, you'll need to clone the input row:

for(int i=1; i<=12; i++) {
Object[] clonedRow = getInputRowMeta().cloneRow(r);
   Object[] newRow = createOutputRow(clonedRow, clonedRow.length);
}

No comments:

Post a Comment