StructField(String, DataType, Boolean, JObject) StructField(String, DataType, Boolean, JObject) Constructor

Definition

Constructor for StructFieldType class.

public StructField (string name, Microsoft.Spark.Sql.Types.DataType dataType, bool isNullable = true, Newtonsoft.Json.Linq.JObject metadata = null);
new Microsoft.Spark.Sql.Types.StructField : string * Microsoft.Spark.Sql.Types.DataType * bool * Newtonsoft.Json.Linq.JObject -> Microsoft.Spark.Sql.Types.StructField

Parameters

name
String String

The name of this field

dataType
DataType DataType

The data type of this field

isNullable
Boolean Boolean

Indicates if values of this field can be null

metadata
Newtonsoft.Json.Linq.JObject Newtonsoft.Json.Linq.JObject

The metadata of this field

Applies to