Functions.FromJson 方法

定義

多載

FromJson(Column, Column, Dictionary<String,String>)

使用指定的架構,將包含 JSON 字串的資料行剖析為 StructTypeArrayTypeStructType 的 。

FromJson(Column, String, Dictionary<String,String>)

使用指定的架構,將包含 JSON 字串的資料行剖析為 StructTypeArrayTypeStructType 的 。

FromJson(Column, Column, Dictionary<String,String>)

使用指定的架構,將包含 JSON 字串的資料行剖析為 StructTypeArrayTypeStructType 的 。

[Microsoft.Spark.Since("2.4.0")]
public static Microsoft.Spark.Sql.Column FromJson(Microsoft.Spark.Sql.Column column, Microsoft.Spark.Sql.Column schema, System.Collections.Generic.Dictionary<string,string> options = default);
[<Microsoft.Spark.Since("2.4.0")>]
static member FromJson : Microsoft.Spark.Sql.Column * Microsoft.Spark.Sql.Column * System.Collections.Generic.Dictionary<string, string> -> Microsoft.Spark.Sql.Column
Public Shared Function FromJson (column As Column, schema As Column, Optional options As Dictionary(Of String, String) = Nothing) As Column

參數

column
Column

包含 JSON 資料的字串資料行

schema
Column

剖析 JSON 字串時要使用的架構

options
Dictionary<String,String>

JSON 剖析的選項

傳回

Column 物件

屬性

適用於

FromJson(Column, String, Dictionary<String,String>)

使用指定的架構,將包含 JSON 字串的資料行剖析為 StructTypeArrayTypeStructType 的 。

public static Microsoft.Spark.Sql.Column FromJson(Microsoft.Spark.Sql.Column column, string schema, System.Collections.Generic.Dictionary<string,string> options = default);
static member FromJson : Microsoft.Spark.Sql.Column * string * System.Collections.Generic.Dictionary<string, string> -> Microsoft.Spark.Sql.Column
Public Shared Function FromJson (column As Column, schema As String, Optional options As Dictionary(Of String, String) = Nothing) As Column

參數

column
Column

要套用的資料行

schema
String

架構的 JSON 格式字串或 DDL 格式字串

options
Dictionary<String,String>

JSON 剖析的選項

傳回

Column 物件

適用於