Share via


Functions.Udf Method

Definition

Overloads

Udf(Func<Row>, StructType)

Creates a UDF from the specified delegate.

Udf<A1,RT>(Func<A1,RT>)

Creates a UDF from the specified delegate.

Udf<T>(Func<T,Row>, StructType)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>(Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,Row>, StructType)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult>(Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult>)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4,T5,T6,T7,T8,T9>(Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,Row>, StructType)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4,T5,T6,T7,T8,TResult>(Func<T1,T2,T3,T4,T5,T6,T7,T8,TResult>)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4,T5,T6,T7,T8>(Func<T1,T2,T3,T4,T5,T6,T7,T8,Row>, StructType)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4,T5,T6,T7,TResult>(Func<T1,T2,T3,T4,T5,T6,T7,TResult>)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4,T5,T6,T7>(Func<T1,T2,T3,T4,T5,T6,T7,Row>, StructType)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4,T5,T6,TResult>(Func<T1,T2,T3,T4,T5,T6,TResult>)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4,T5,T6>(Func<T1,T2,T3,T4,T5,T6,Row>, StructType)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4,T5,TResult>(Func<T1,T2,T3,T4,T5,TResult>)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4,T5>(Func<T1,T2,T3,T4,T5,Row>, StructType)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4,TResult>(Func<T1,T2,T3,T4,TResult>)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,T4>(Func<T1,T2,T3,T4,Row>, StructType)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3,TResult>(Func<T1,T2,T3,TResult>)

Creates a UDF from the specified delegate.

Udf<T1,T2,T3>(Func<T1,T2,T3,Row>, StructType)

Creates a UDF from the specified delegate.

Udf<T1,T2,TResult>(Func<T1,T2,TResult>)

Creates a UDF from the specified delegate.

Udf<T1,T2>(Func<T1,T2,Row>, StructType)

Creates a UDF from the specified delegate.

Udf<TResult>(Func<TResult>)

Creates a UDF from the specified delegate.

Udf(Func<Row>, StructType)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column> Udf (Func<Microsoft.Spark.Sql.Row> udf, Microsoft.Spark.Sql.Types.StructType returnType);
static member Udf : Func<Microsoft.Spark.Sql.Row> * Microsoft.Spark.Sql.Types.StructType -> Func<Microsoft.Spark.Sql.Column>
Public Shared Function Udf (udf As Func(Of Row), returnType As StructType) As Func(Of Column)

Parameters

udf
Func<Row>

The UDF function implementation.

returnType
StructType

Schema associated with this row

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<A1,RT>(Func<A1,RT>)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<A1,RT> (Func<A1,RT> udf);
static member Udf : Func<'A1, 'RT> -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of A1, RT) (udf As Func(Of A1, RT)) As Func(Of Column, Column)

Type Parameters

A1

Specifies the type of the first argument to the UDF.

RT

Specifies the return type of the UDF.

Parameters

udf
Func<A1,RT>

The UDF function implementation.

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T>(Func<T,Row>, StructType)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T> (Func<T,Microsoft.Spark.Sql.Row> udf, Microsoft.Spark.Sql.Types.StructType returnType);
static member Udf : Func<'T, Microsoft.Spark.Sql.Row> * Microsoft.Spark.Sql.Types.StructType -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T) (udf As Func(Of T, Row), returnType As StructType) As Func(Of Column, Column)

Type Parameters

T

Specifies the type of the first argument to the UDF.

Parameters

udf
Func<T,Row>

The UDF function implementation.

returnType
StructType

Schema associated with this row

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>(Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult> (Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult> udf);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'Result> -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult) (udf As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult)) As Func(Of Column, Column, Column, Column, Column, Column, Column, Column, Column, Column, Column)

Type Parameters

A1

Specifies the type of the first argument to the UDF.

A2

Specifies the type of the second argument to the UDF.

A3

Specifies the type of the third argument to the UDF.

A4

Specifies the type of the fourth argument to the UDF.

A5

Specifies the type of the fifth argument to the UDF.

A6

Specifies the type of the sixth argument to the UDF.

A7

Specifies the type of the seventh argument to the UDF.

A8

Specifies the type of the eighth argument to the UDF.

A9

Specifies the type of the ninth argument to the UDF.

A10

Specifies the type of the tenth argument to the UDF.

RT

Specifies the return type of the UDF.

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

T5

Specifies the type of the fifth argument to the UDF.

T6

Specifies the type of the sixth argument to the UDF.

T7

Specifies the type of the seventh argument to the UDF.

T8

Specifies the type of the eighth argument to the UDF.

T9

Specifies the type of the ninth argument to the UDF.

T10

Specifies the type of the tenth argument to the UDF.

TResult

Specifies the return type of the UDF.

Parameters

udf
Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>

The UDF function implementation.

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,Row>, StructType)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> (Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,Microsoft.Spark.Sql.Row> udf, Microsoft.Spark.Sql.Types.StructType returnType);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, Microsoft.Spark.Sql.Row> * Microsoft.Spark.Sql.Types.StructType -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) (udf As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Row), returnType As StructType) As Func(Of Column, Column, Column, Column, Column, Column, Column, Column, Column, Column, Column)

Type Parameters

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

T5

Specifies the type of the fifth argument to the UDF.

T6

Specifies the type of the sixth argument to the UDF.

T7

Specifies the type of the seventh argument to the UDF.

T8

Specifies the type of the eighth argument to the UDF.

T9

Specifies the type of the ninth argument to the UDF.

T10

Specifies the type of the tenth argument to the UDF.

Parameters

udf
Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,Row>

The UDF function implementation.

returnType
StructType

Schema associated with this row

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult>(Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult>)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult> (Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult> udf);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'Result> -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult) (udf As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult)) As Func(Of Column, Column, Column, Column, Column, Column, Column, Column, Column, Column)

Type Parameters

A1

Specifies the type of the first argument to the UDF.

A2

Specifies the type of the second argument to the UDF.

A3

Specifies the type of the third argument to the UDF.

A4

Specifies the type of the fourth argument to the UDF.

A5

Specifies the type of the fifth argument to the UDF.

A6

Specifies the type of the sixth argument to the UDF.

A7

Specifies the type of the seventh argument to the UDF.

A8

Specifies the type of the eighth argument to the UDF.

A9

Specifies the type of the ninth argument to the UDF.

RT

Specifies the return type of the UDF.

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

T5

Specifies the type of the fifth argument to the UDF.

T6

Specifies the type of the sixth argument to the UDF.

T7

Specifies the type of the seventh argument to the UDF.

T8

Specifies the type of the eighth argument to the UDF.

T9

Specifies the type of the ninth argument to the UDF.

TResult

Specifies the return type of the UDF.

Parameters

udf
Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult>

The UDF function implementation.

Returns

A delegate that when invoked will return a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4,T5,T6,T7,T8,T9>(Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,Row>, StructType)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4,T5,T6,T7,T8,T9> (Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,Microsoft.Spark.Sql.Row> udf, Microsoft.Spark.Sql.Types.StructType returnType);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, Microsoft.Spark.Sql.Row> * Microsoft.Spark.Sql.Types.StructType -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4, T5, T6, T7, T8, T9) (udf As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, Row), returnType As StructType) As Func(Of Column, Column, Column, Column, Column, Column, Column, Column, Column, Column)

Type Parameters

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

T5

Specifies the type of the fifth argument to the UDF.

T6

Specifies the type of the sixth argument to the UDF.

T7

Specifies the type of the seventh argument to the UDF.

T8

Specifies the type of the eighth argument to the UDF.

T9

Specifies the type of the ninth argument to the UDF.

Parameters

udf
Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,Row>

The UDF function implementation.

returnType
StructType

Schema associated with this row

Returns

A delegate that when invoked will return a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4,T5,T6,T7,T8,TResult>(Func<T1,T2,T3,T4,T5,T6,T7,T8,TResult>)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4,T5,T6,T7,T8,TResult> (Func<T1,T2,T3,T4,T5,T6,T7,T8,TResult> udf);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'Result> -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4, T5, T6, T7, T8, TResult) (udf As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, TResult)) As Func(Of Column, Column, Column, Column, Column, Column, Column, Column, Column)

Type Parameters

A1

Specifies the type of the first argument to the UDF.

A2

Specifies the type of the second argument to the UDF.

A3

Specifies the type of the third argument to the UDF.

A4

Specifies the type of the fourth argument to the UDF.

A5

Specifies the type of the fifth argument to the UDF.

A6

Specifies the type of the sixth argument to the UDF.

A7

Specifies the type of the seventh argument to the UDF.

A8

Specifies the type of the eighth argument to the UDF.

RT

Specifies the return type of the UDF.

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

T5

Specifies the type of the fifth argument to the UDF.

T6

Specifies the type of the sixth argument to the UDF.

T7

Specifies the type of the seventh argument to the UDF.

T8

Specifies the type of the eighth argument to the UDF.

TResult

Specifies the return type of the UDF.

Parameters

udf
Func<T1,T2,T3,T4,T5,T6,T7,T8,TResult>

The UDF function implementation.

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4,T5,T6,T7,T8>(Func<T1,T2,T3,T4,T5,T6,T7,T8,Row>, StructType)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4,T5,T6,T7,T8> (Func<T1,T2,T3,T4,T5,T6,T7,T8,Microsoft.Spark.Sql.Row> udf, Microsoft.Spark.Sql.Types.StructType returnType);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, Microsoft.Spark.Sql.Row> * Microsoft.Spark.Sql.Types.StructType -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4, T5, T6, T7, T8) (udf As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, Row), returnType As StructType) As Func(Of Column, Column, Column, Column, Column, Column, Column, Column, Column)

Type Parameters

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

T5

Specifies the type of the fifth argument to the UDF.

T6

Specifies the type of the sixth argument to the UDF.

T7

Specifies the type of the seventh argument to the UDF.

T8

Specifies the type of the eighth argument to the UDF.

Parameters

udf
Func<T1,T2,T3,T4,T5,T6,T7,T8,Row>

The UDF function implementation.

returnType
StructType

Schema associated with this row

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4,T5,T6,T7,TResult>(Func<T1,T2,T3,T4,T5,T6,T7,TResult>)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4,T5,T6,T7,TResult> (Func<T1,T2,T3,T4,T5,T6,T7,TResult> udf);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'Result> -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4, T5, T6, T7, TResult) (udf As Func(Of T1, T2, T3, T4, T5, T6, T7, TResult)) As Func(Of Column, Column, Column, Column, Column, Column, Column, Column)

Type Parameters

A1

Specifies the type of the first argument to the UDF.

A2

Specifies the type of the second argument to the UDF.

A3

Specifies the type of the third argument to the UDF.

A4

Specifies the type of the fourth argument to the UDF.

A5

Specifies the type of the fifth argument to the UDF.

A6

Specifies the type of the sixth argument to the UDF.

A7

Specifies the type of the seventh argument to the UDF.

RT

Specifies the return type of the UDF.

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

T5

Specifies the type of the fifth argument to the UDF.

T6

Specifies the type of the sixth argument to the UDF.

T7

Specifies the type of the seventh argument to the UDF.

TResult

Specifies the return type of the UDF.

Parameters

udf
Func<T1,T2,T3,T4,T5,T6,T7,TResult>

The UDF function implementation.

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4,T5,T6,T7>(Func<T1,T2,T3,T4,T5,T6,T7,Row>, StructType)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4,T5,T6,T7> (Func<T1,T2,T3,T4,T5,T6,T7,Microsoft.Spark.Sql.Row> udf, Microsoft.Spark.Sql.Types.StructType returnType);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, Microsoft.Spark.Sql.Row> * Microsoft.Spark.Sql.Types.StructType -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4, T5, T6, T7) (udf As Func(Of T1, T2, T3, T4, T5, T6, T7, Row), returnType As StructType) As Func(Of Column, Column, Column, Column, Column, Column, Column, Column)

Type Parameters

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

T5

Specifies the type of the fifth argument to the UDF.

T6

Specifies the type of the sixth argument to the UDF.

T7

Specifies the type of the seventh argument to the UDF.

Parameters

udf
Func<T1,T2,T3,T4,T5,T6,T7,Row>

The UDF function implementation.

returnType
StructType

Schema associated with this row

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4,T5,T6,TResult>(Func<T1,T2,T3,T4,T5,T6,TResult>)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4,T5,T6,TResult> (Func<T1,T2,T3,T4,T5,T6,TResult> udf);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'Result> -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4, T5, T6, TResult) (udf As Func(Of T1, T2, T3, T4, T5, T6, TResult)) As Func(Of Column, Column, Column, Column, Column, Column, Column)

Type Parameters

A1

Specifies the type of the first argument to the UDF.

A2

Specifies the type of the second argument to the UDF.

A3

Specifies the type of the third argument to the UDF.

A4

Specifies the type of the fourth argument to the UDF.

A5

Specifies the type of the fifth argument to the UDF.

A6

Specifies the type of the sixth argument to the UDF.

RT

Specifies the return type of the UDF.

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

T5

Specifies the type of the fifth argument to the UDF.

T6

Specifies the type of the sixth argument to the UDF.

TResult

Specifies the return type of the UDF.

Parameters

udf
Func<T1,T2,T3,T4,T5,T6,TResult>

The UDF function implementation.

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4,T5,T6>(Func<T1,T2,T3,T4,T5,T6,Row>, StructType)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4,T5,T6> (Func<T1,T2,T3,T4,T5,T6,Microsoft.Spark.Sql.Row> udf, Microsoft.Spark.Sql.Types.StructType returnType);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, Microsoft.Spark.Sql.Row> * Microsoft.Spark.Sql.Types.StructType -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4, T5, T6) (udf As Func(Of T1, T2, T3, T4, T5, T6, Row), returnType As StructType) As Func(Of Column, Column, Column, Column, Column, Column, Column)

Type Parameters

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

T5

Specifies the type of the fifth argument to the UDF.

T6

Specifies the type of the sixth argument to the UDF.

Parameters

udf
Func<T1,T2,T3,T4,T5,T6,Row>

The UDF function implementation.

returnType
StructType

Schema associated with this row

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4,T5,TResult>(Func<T1,T2,T3,T4,T5,TResult>)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4,T5,TResult> (Func<T1,T2,T3,T4,T5,TResult> udf);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, 'T5, 'Result> -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4, T5, TResult) (udf As Func(Of T1, T2, T3, T4, T5, TResult)) As Func(Of Column, Column, Column, Column, Column, Column)

Type Parameters

A1

Specifies the type of the first argument to the UDF.

A2

Specifies the type of the second argument to the UDF.

A3

Specifies the type of the third argument to the UDF.

A4

Specifies the type of the fourth argument to the UDF.

A5

Specifies the type of the fifth argument to the UDF.

RT

Specifies the return type of the UDF.

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

T5

Specifies the type of the fifth argument to the UDF.

TResult

Specifies the return type of the UDF.

Parameters

udf
Func<T1,T2,T3,T4,T5,TResult>

The UDF function implementation.

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4,T5>(Func<T1,T2,T3,T4,T5,Row>, StructType)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4,T5> (Func<T1,T2,T3,T4,T5,Microsoft.Spark.Sql.Row> udf, Microsoft.Spark.Sql.Types.StructType returnType);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, 'T5, Microsoft.Spark.Sql.Row> * Microsoft.Spark.Sql.Types.StructType -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4, T5) (udf As Func(Of T1, T2, T3, T4, T5, Row), returnType As StructType) As Func(Of Column, Column, Column, Column, Column, Column)

Type Parameters

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

T5

Specifies the type of the fifth argument to the UDF.

Parameters

udf
Func<T1,T2,T3,T4,T5,Row>

The UDF function implementation.

returnType
StructType

Schema associated with this row

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4,TResult>(Func<T1,T2,T3,T4,TResult>)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4,TResult> (Func<T1,T2,T3,T4,TResult> udf);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, 'Result> -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4, TResult) (udf As Func(Of T1, T2, T3, T4, TResult)) As Func(Of Column, Column, Column, Column, Column)

Type Parameters

A1

Specifies the type of the first argument to the UDF.

A2

Specifies the type of the second argument to the UDF.

A3

Specifies the type of the third argument to the UDF.

A4

Specifies the type of the fourth argument to the UDF.

RT

Specifies the return type of the UDF.

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

TResult

Specifies the return type of the UDF.

Parameters

udf
Func<T1,T2,T3,T4,TResult>

The UDF function implementation.

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,T4>(Func<T1,T2,T3,T4,Row>, StructType)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,T4> (Func<T1,T2,T3,T4,Microsoft.Spark.Sql.Row> udf, Microsoft.Spark.Sql.Types.StructType returnType);
static member Udf : Func<'T1, 'T2, 'T3, 'T4, Microsoft.Spark.Sql.Row> * Microsoft.Spark.Sql.Types.StructType -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, T4) (udf As Func(Of T1, T2, T3, T4, Row), returnType As StructType) As Func(Of Column, Column, Column, Column, Column)

Type Parameters

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

T4

Specifies the type of the fourth argument to the UDF.

Parameters

udf
Func<T1,T2,T3,T4,Row>

The UDF function implementation.

returnType
StructType

Schema associated with this row

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3,TResult>(Func<T1,T2,T3,TResult>)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3,TResult> (Func<T1,T2,T3,TResult> udf);
static member Udf : Func<'T1, 'T2, 'T3, 'Result> -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3, TResult) (udf As Func(Of T1, T2, T3, TResult)) As Func(Of Column, Column, Column, Column)

Type Parameters

A1

Specifies the type of the first argument to the UDF.

A2

Specifies the type of the second argument to the UDF.

A3

Specifies the type of the third argument to the UDF.

RT

Specifies the return type of the UDF.

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

TResult

Specifies the return type of the UDF.

Parameters

udf
Func<T1,T2,T3,TResult>

The UDF function implementation.

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,T3>(Func<T1,T2,T3,Row>, StructType)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,T3> (Func<T1,T2,T3,Microsoft.Spark.Sql.Row> udf, Microsoft.Spark.Sql.Types.StructType returnType);
static member Udf : Func<'T1, 'T2, 'T3, Microsoft.Spark.Sql.Row> * Microsoft.Spark.Sql.Types.StructType -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, T3) (udf As Func(Of T1, T2, T3, Row), returnType As StructType) As Func(Of Column, Column, Column, Column)

Type Parameters

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

T3

Specifies the type of the third argument to the UDF.

Parameters

udf
Func<T1,T2,T3,Row>

The UDF function implementation.

returnType
StructType

Schema associated with this row

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2,TResult>(Func<T1,T2,TResult>)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2,TResult> (Func<T1,T2,TResult> udf);
static member Udf : Func<'T1, 'T2, 'Result> -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2, TResult) (udf As Func(Of T1, T2, TResult)) As Func(Of Column, Column, Column)

Type Parameters

A1

Specifies the type of the first argument to the UDF.

A2

Specifies the type of the second argument to the UDF.

RT

Specifies the return type of the UDF.

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

TResult

Specifies the return type of the UDF.

Parameters

udf
Func<T1,T2,TResult>

The UDF function implementation.

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<T1,T2>(Func<T1,T2,Row>, StructType)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column,Microsoft.Spark.Sql.Column> Udf<T1,T2> (Func<T1,T2,Microsoft.Spark.Sql.Row> udf, Microsoft.Spark.Sql.Types.StructType returnType);
static member Udf : Func<'T1, 'T2, Microsoft.Spark.Sql.Row> * Microsoft.Spark.Sql.Types.StructType -> Func<Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column, Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of T1, T2) (udf As Func(Of T1, T2, Row), returnType As StructType) As Func(Of Column, Column, Column)

Type Parameters

T1

Specifies the type of the first argument to the UDF.

T2

Specifies the type of the second argument to the UDF.

Parameters

udf
Func<T1,T2,Row>

The UDF function implementation.

returnType
StructType

Schema associated with this row

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to

Udf<TResult>(Func<TResult>)

Creates a UDF from the specified delegate.

public static Func<Microsoft.Spark.Sql.Column> Udf<TResult> (Func<TResult> udf);
static member Udf : Func<'Result> -> Func<Microsoft.Spark.Sql.Column>
Public Shared Function Udf(Of TResult) (udf As Func(Of TResult)) As Func(Of Column)

Type Parameters

RT

Specifies the return type of the UDF.

TResult

Specifies the return type of the UDF.

Parameters

udf
Func<TResult>

The UDF function implementation.

Returns

A delegate that returns a Column(String) for the result of the UDF.

Applies to