Functions.FromJson 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| FromJson(Column, Column, Dictionary<String,String>) |
使用指定的架構,將包含 JSON 字串的資料行剖析為 |
| FromJson(Column, String, Dictionary<String,String>) |
使用指定的架構,將包含 JSON 字串的資料行剖析為 |
FromJson(Column, Column, Dictionary<String,String>)
使用指定的架構,將包含 JSON 字串的資料行剖析為 StructType 或 ArrayTypeStructType 的 。
[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 字串的資料行剖析為 StructType 或 ArrayTypeStructType 的 。
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 物件