|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.di.trans.RowStepCollector
public class RowStepCollector
Helper class for testcases. You can add an instance of this class to a step to read all of the Rows the step read or wrote.
| Constructor Summary | |
|---|---|
RowStepCollector()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear the rows read and rows written. |
void |
errorRowWrittenEvent(RowMetaInterface rowMeta,
Object[] row)
This method is called when the error handling of a row is writing a row to the error stream. |
List<RowMetaAndData> |
getRowsError()
|
List<RowMetaAndData> |
getRowsRead()
|
List<RowMetaAndData> |
getRowsWritten()
|
void |
rowReadEvent(RowMetaInterface rowMeta,
Object[] row)
This method is called when a row is read from another step |
void |
rowWrittenEvent(RowMetaInterface rowMeta,
Object[] row)
This method is called when a row is written to another step (even if there is no next step) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RowStepCollector()
| Method Detail |
|---|
public void rowReadEvent(RowMetaInterface rowMeta,
Object[] row)
RowListener
rowReadEvent in interface RowListenerrowMeta - the metadata of the rowrow - the data of the row
public void rowWrittenEvent(RowMetaInterface rowMeta,
Object[] row)
RowListener
rowWrittenEvent in interface RowListenerrowMeta - the metadata of the rowrow - the data of the row
public void errorRowWrittenEvent(RowMetaInterface rowMeta,
Object[] row)
RowListener
errorRowWrittenEvent in interface RowListenerrowMeta - the metadata of the rowrow - the data of the rowpublic void clear()
public List<RowMetaAndData> getRowsRead()
public List<RowMetaAndData> getRowsWritten()
public List<RowMetaAndData> getRowsError()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||