org.pentaho.di.trans.step
Interface RowListener

All Known Implementing Classes:
RowAdapter, RowStepCollector

public interface RowListener

RowListener is a listener interface for receiving row events. A class that is interested in processing a row event implements this interface, and the object created with that class is registered with a component using the component's

addRowListener
method. When the row event occurs, that object's appropriate method is invoked.

See Also:
RowEvent

Method Summary
 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.
 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)
 

Method Detail

rowReadEvent

void rowReadEvent(RowMetaInterface rowMeta,
                  Object[] row)
                  throws KettleStepException
This method is called when a row is read from another step

Parameters:
rowMeta - the metadata of the row
row - the data of the row
Throws:
KettleStepException - an exception that can be thrown to hard stop the step

rowWrittenEvent

void rowWrittenEvent(RowMetaInterface rowMeta,
                     Object[] row)
                     throws KettleStepException
This method is called when a row is written to another step (even if there is no next step)

Parameters:
rowMeta - the metadata of the row
row - the data of the row
Throws:
KettleStepException - an exception that can be thrown to hard stop the step

errorRowWrittenEvent

void errorRowWrittenEvent(RowMetaInterface rowMeta,
                          Object[] row)
                          throws KettleStepException
This method is called when the error handling of a row is writing a row to the error stream.

Parameters:
rowMeta - the metadata of the row
row - the data of the row
Throws:
KettleStepException - an exception that can be thrown to hard stop the step