Column.Apply(Object) Method

Definition

Extracts a value or values from a complex type. The following types of extraction are supported:

  1. Given an Array, an integer ordinal can be used to retrieve a single value.
  2. Given a Map, a key of the correct type can be used to retrieve an individual value.
  3. Given a Struct, a string fieldName can be used to extract that field.
  4. Given an Array of Structs, a string fieldName can be used to extract field of every struct in that array, and return an Array of fields.
public Microsoft.Spark.Sql.Column Apply (object extraction);
member this.Apply : obj -> Microsoft.Spark.Sql.Column
Public Function Apply (extraction As Object) As Column

Parameters

extraction
Object

Object used to extract value(s) from the column

Returns

Column object

Applies to