Reading data from Java code

To read data from your Java™ code by using the Java Integration stage, you need to integrate a Java code supported by the Java Integration stage and configure the Java Integration stage to process data as a source. As a source, the connector extracts or reads data from your Java code.

The following figure shows an example of using the Java Integration stage to read data. In this case, the Java Integration stage Java_Stage_0 reads data and writes it to the files Peek_1 and Peek_2. When you configure the Java Integration stage to read data, you can create 1 or more output links Peek_1 and Peek_2, which is shown in the figure below transferring rows from Java_Stage_0 to Peek_1 and Peek_2.

Figure 1. Example of reading data
The figure shows an example of using the Java Integration stage to retrieve data from Java code.