DataFrameReader.Schema Metodo

Definizione

Overload

Schema(StructType)

Specifica lo schema usando StructType.

Schema(String)

Specifica lo schema usando la stringa formattata DDL specificata.

Schema(StructType)

Specifica lo schema usando StructType.

public Microsoft.Spark.Sql.DataFrameReader Schema(Microsoft.Spark.Sql.Types.StructType schema);
member this.Schema : Microsoft.Spark.Sql.Types.StructType -> Microsoft.Spark.Sql.DataFrameReader
Public Function Schema (schema As StructType) As DataFrameReader

Parametri

schema
StructType

Schema di input

Restituisce

Oggetto DataFrameReader

Commenti

Alcune origini dati (ad esempio JSON) possono dedurre automaticamente lo schema di input dai dati. Specificando lo schema qui, l'origine dati sottostante può ignorare il passaggio di inferenza dello schema e quindi velocizzare il caricamento dei dati.

Si applica a

Schema(String)

Specifica lo schema usando la stringa formattata DDL specificata.

public Microsoft.Spark.Sql.DataFrameReader Schema(string schemaString);
member this.Schema : string -> Microsoft.Spark.Sql.DataFrameReader
Public Function Schema (schemaString As String) As DataFrameReader

Parametri

schemaString
String

Stringa formattata DDL

Restituisce

Oggetto DataFrameReader

Commenti

Alcune origini dati (ad esempio JSON) possono dedurre automaticamente lo schema di input dai dati. Specificando lo schema qui, l'origine dati sottostante può ignorare il passaggio di inferenza dello schema e quindi velocizzare il caricamento dei dati.

Si applica a