...
TODO: Add, Clean, Fix (This is better than nothing)
...
Intro
...
Check out the DummyPlugin example:
...
- Dialog: Configuration dialog (Used in Spoon)
...
How to read in rows:
...
The Plugin is the "core" of the step and contains the all important processRow(StepMetaInterface smi, StepDataInterface sdi) method.
...
NOTE: Do not go by the size of the Object[] returned by getRow(), it is allocated in chunks. Get the field count for the incoming row from getInputRowMeta().
...
How to create new fields for output:
...
In the processRow(...) method you invoke putRow(meta, row) to send a row to the output stream (onto the next step). You determine what the meta is, a simple way to accomplish field addition is to copy the input row meta and add your output field meta to it. Then use that as the outputMeta.
...
Checkout
...
http://source.pentaho.org/svnkettleroot/Kettle/trunk/src/org/pentaho/di/trans/steps/rowgenerator/RowGenerator.java for an example.
NOTE: RowGenerateMeta.getFields(...) is used to tell the UI what the outputMeta will be at build time. This is important to do.
...
Loading and Saving
...
of a step are accomplished in the StepMeta with the following four methods:
Repository:
- readRep(...)
- saveRep(...)
File:
- loadXml(...)
- getXml(...)
...
Other confusing links:
...
http://wiki.pentaho.com/display/COM/PDI+Plugin+Loading
...