官术网_书友最值得收藏!

Rank Index

When you create a Rank transformation, a default column gets created called Rank Index. This port, if required, can generate numbers indicating the Rank. This is an optional field that you may use if required. If you do not wish to use Rank Index, you can leave the port unconnected.

Suppose you have following data belonging to the SALARY column in the source:

SALARY

100

1000

500

600

1000

800

900

 

When you pass the data through Rank transformation and define the condition to get the top five salaried records, the Rank transformation generates the Rank index as indicated here:

Rank_Index

Salary

1

1000

1

1000

3

900

4

800

5

600

 

As you can see, Rank index assigns rank 1 to the same salary value and assigns 3 to the next salary since it is actually 3rd in the sequence. So, if you have five records with 1,000 as salary in the source along with other values and you defined the condition to get the top five salaries, Rank transformation will give all five records with 1,000 salary and reject all others.

With this, you have learned all the details about Rank transformation.

主站蜘蛛池模板: 沛县| 许昌市| 齐河县| 黔东| 清丰县| 忻州市| 襄城县| 岢岚县| 本溪| 观塘区| 景德镇市| 库伦旗| 夏邑县| 伊川县| 康保县| 铜川市| 新干县| 玉溪市| 左权县| 中山市| 阳西县| 齐齐哈尔市| 寿阳县| 金平| SHOW| 平凉市| 海伦市| 伊川县| 襄汾县| 鄂尔多斯市| 焉耆| 郑州市| 夏邑县| 淮阳县| 衡山县| 阿拉善左旗| 岚皋县| 博罗县| 蓝田县| 南召县| 平阳县|