Sequence Project Showplan Operator 序列映射运算符

时间:2021-04-24 16:40:08

Sequence Project Showplan Operator 序列映射运算符

序列映射运算符会从一个已经排序的集合里通过不停添加集合里的列执行计算。

运算符根据一个或多个列的值把输入集合分为多个片段。然后运算符一次输出一个片段。

这些列在序列映射运算符里会被显示为参数。

SQL Server支持四种类型函数:RANK, DENSE_RANK, ROW_NUMBER, NTILE

序列映射会生成有(一个序列映射)和(两个片段)的执行计划

Sequence Project Showplan Operator 序列映射运算符

The Sequence Project operator adds columns to perform computations over an ordered set. It divides the input set into segments based on the value of one or more columns. The operator then outputs one segment at a time. These columns are shown as arguments in the Sequence Project operator.

Microsoft SQL Server supports four types of functions: RANK, DENSE_RANK, ROW_NUMBER, and NTILE. Sequence Projectwill generate plans that have a Sequence Project and generally two segments.

Sequence Project is a physical and a logical operator.

Sequence Project Showplan Operator 序列映射运算符

https://msdn.microsoft.com/en-us/library/ms187041(v=sql.105).aspx