The key to doing this is to not read in any rows using getRow(), and thus not to check for a null row. You can assume that processRow will be called once, and you ensure it will ONLY be called once by calling setOutputDone() at the end of processRow(), followed by returning false. The "Input Generator" version of the UDJC step I wrote to get all PDI Step Plugins (from my previous post) is on Gist here. Here's a screenshot of an example using the Input version to filter on Input plugins:
Look ma, no Generate Rows! :)
Look ma, no Generate Rows! :)
No comments:
Post a Comment