public int process()
The process() method is the entry point for processing input and output rows. Override the process() method in your Stage subclass.
The Java Pack API calls the process() method every time an event occurs:
A single process() call can handle the complete set of input records. However, if you want to monitor, through InfoSphere® DataStage® Director, the number of records that are processed within a timeframe, it is recommended that process() returns frequently.
| Stage / Deployment | Effect of Omitting a readRow() |
|---|---|
| Java Transformer | InfoSphere DataStage stops
the job and writes the following message to the job log:
|
| Java Client (target) | The input row is discarded. |
| Java Client (lookup) | The active stage that is connected to the Java Client stage uses any rows that the Java Client writes on the link. |
The default process() implementation reads the next available input row and writes its contents to the job log. These log entries are created only when tracing has been activated for the job through InfoSphere DataStage Director.
The process() method must return one or more of these status fields:
Indicates that no rows have been written on any output link and that no more rows will be written until the end of the job execution because no more rows are available.
Indicates that no rows have been written on any output link. The Java Client stage, when used as a source stage, will call the process() method again until OUTPUT_STATUS_END_OF_DATA is returned from your process() method.
Indicates that at least one row has been successfully written on an output link.