- Learning Informatica PowerCenter 10.x(Second Edition)
- Rahul Malewar
- 251字
- 2021-07-02 20:55:52
Rank transformation
Rank transformation is used to get the top or bottom specific number of records. Consider that you need to take the top five salaried employees from the EMPLOYEE table; you can use rank transformation and define the property. A sample mapping indicating the Rank transformation is shown in the following screenshot:

When you create a Rank transformation, a default output port RANKINDEX comes with the transformation. It is not mandatory to use the RANKINDEX port. We have connected the RANKINDEX port to the target as we wish to denote the rank of the employees based on their SALARY.
When you use Rank transformation, you need to define the port on which you wish to rank the data. As shown in the following screenshot, we have ranked the data based on SALARY:

You cannot rank the data on multiple ports.
Also, you need to define either the Top or Bottom option and the number of records you wish to rank in the Properties tab. In our case, we have selected Top and 5 numbers to implement the scenario as shown in the following screenshot:

Rank transformation accepts the data in a row-wise manner and stores the data in cache. Once the data in received completely, it checks the data based on the condition and sends the data to the output port.
Rank transformation allows you to get the data based on a particular group. In the next section, we will talk about the group by key present in Rank transformation.
- 深入理解Django:框架內(nèi)幕與實(shí)現(xiàn)原理
- 網(wǎng)頁設(shè)計(jì)與制作教程(HTML+CSS+JavaScript)(第2版)
- Visual C#.NET Web應(yīng)用程序設(shè)計(jì)
- Hands-On JavaScript for Python Developers
- R Data Science Essentials
- 從零開始學(xué)Selenium自動化測試:基于Python:視頻教學(xué)版
- 青少年學(xué)Python(第2冊)
- Application Development with Parse using iOS SDK
- Maven for Eclipse
- Access數(shù)據(jù)庫應(yīng)用教程(2010版)
- 征服C指針(第2版)
- TypeScript全棧開發(fā)
- Getting Started with Web Components
- MongoDB Cookbook
- 第五空間戰(zhàn)略:大國間的網(wǎng)絡(luò)博弈