Interface IRowListener

  • All Known Implementing Classes:
    RowAdapter

    public interface IRowListener
    IRowListener 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.

    • Method Detail

      • rowReadEvent

        void rowReadEvent​(IRowMeta rowMeta,
                          Object[] row)
                   throws HopTransformException
        This method is called when a row is read from another transform
        Parameters:
        rowMeta - the metadata of the row
        row - the data of the row
        Throws:
        HopTransformException - an exception that can be thrown to hard stop the transform
      • rowWrittenEvent

        void rowWrittenEvent​(IRowMeta rowMeta,
                             Object[] row)
                      throws HopTransformException
        This method is called when a row is written to another transform (even if there is no next transform)
        Parameters:
        rowMeta - the metadata of the row
        row - the data of the row
        Throws:
        HopTransformException - an exception that can be thrown to hard stop the transform
      • errorRowWrittenEvent

        void errorRowWrittenEvent​(IRowMeta rowMeta,
                                  Object[] row)
                           throws HopTransformException
        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:
        HopTransformException - an exception that can be thrown to hard stop the transform