共用方式為


Functions.SchemaOfJson 方法

定義

多載

SchemaOfJson(Column)

剖析 JSON 字串,並以 DDL 格式推斷其架構。

SchemaOfJson(String)

剖析 JSON 字串,並以 DDL 格式推斷其架構。

SchemaOfJson(Column, Dictionary<String,String>)

剖析 JSON 字串,並以 DDL 格式推斷其架構。

SchemaOfJson(Column)

剖析 JSON 字串,並以 DDL 格式推斷其架構。

[Microsoft.Spark.Since("2.4.0")]
public static Microsoft.Spark.Sql.Column SchemaOfJson (Microsoft.Spark.Sql.Column json);
[<Microsoft.Spark.Since("2.4.0")>]
static member SchemaOfJson : Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.Column
Public Shared Function SchemaOfJson (json As Column) As Column

參數

json
Column

包含 JSON 字串的字串常值。

傳回

Column 物件

屬性

適用於

SchemaOfJson(String)

剖析 JSON 字串,並以 DDL 格式推斷其架構。

[Microsoft.Spark.Since("2.4.0")]
public static Microsoft.Spark.Sql.Column SchemaOfJson (string json);
[<Microsoft.Spark.Since("2.4.0")>]
static member SchemaOfJson : string -> Microsoft.Spark.Sql.Column
Public Shared Function SchemaOfJson (json As String) As Column

參數

json
String

JSON 字串

傳回

Column 物件

屬性

適用於

SchemaOfJson(Column, Dictionary<String,String>)

剖析 JSON 字串,並以 DDL 格式推斷其架構。

[Microsoft.Spark.Since("3.0.0")]
public static Microsoft.Spark.Sql.Column SchemaOfJson (Microsoft.Spark.Sql.Column json, System.Collections.Generic.Dictionary<string,string> options);
[<Microsoft.Spark.Since("3.0.0")>]
static member SchemaOfJson : Microsoft.Spark.Sql.Column * System.Collections.Generic.Dictionary<string, string> -> Microsoft.Spark.Sql.Column
Public Shared Function SchemaOfJson (json As Column, options As Dictionary(Of String, String)) As Column

參數

json
Column

包含 JSON 字串的字串常值。

options
Dictionary<String,String>

控制 json 剖析方式的選項。

傳回

Column 物件

屬性

適用於