Functions.Ntile(Int32) 方法

定義

Window 函式:將 ntile 群組識別碼 (從 1 傳回至 n 已排序視窗分割區中的內含) 。 例如,如果 n 為 4,則資料列的第一季將取得值 1、第二季會取得 2、第三季會取得 3,而最後一季則會取得 4。

public static Microsoft.Spark.Sql.Column Ntile(int n);
static member Ntile : int -> Microsoft.Spark.Sql.Column
Public Shared Function Ntile (n As Integer) As Column

參數

n
Int32

貯體數目

傳回

Column 物件

備註

這相當於 SQL 中的 NTILE 函式。

適用於