Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In

Quick Launch

Average Rating:

(1 Rating)
facebook Twitter
Email
Print Bookmark Alert me when this article is updated

Feedback

FAQ: What are the JAVA CODE sections in a Java transformation used for?
Answer

When you are creating a Java transformation and go to the Java Code tab to fill out the custom code you want to be executed at run-time, there are three main sections that are focused on and widely used:

  • On Input Row
  • On End of Data
  • Java Expressions

The main purpose and the difference between the three is as follows:

On Input Row

The code in this section gets executed when a row is passed to the Java transformation. For example, in this section you can put code to assign values from input ports to output ports (including the manipulation you want to do to the incoming data).

On End of Data

The code in this section gets executed on end of data (for every partition in case you have multiple partitions). For example, this section can be used to include code that will print out statistical kind of data (like how many rows were written, what was the highest number, etc).

Java Expressions

This section is used to create methods that will get called in either one of the two sections above. In the expressions you can call on lookups and do anything that an Expression transformation would do.


More Information

Applies To
Product: PowerCenter
Problem Type:
User Type: Administrator
Project Phase:
Product Version: PowerCenter
Database:
Operating System:
Other Software:

Reference

Attachments

Last Modified Date:8/2/2008 4:19 PMID:32436
People who viewed this also viewed

Feedback

Did this KB document help you?



What can we do to improve this information (2000 or fewer characters)