Share via


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 = default);
new Microsoft.Spark.Sql.Types.StructField : string * Microsoft.Spark.Sql.Types.DataType * bool * Newtonsoft.Json.Linq.JObject -> Microsoft.Spark.Sql.Types.StructField
Public Sub New (name As String, dataType As DataType, Optional isNullable As Boolean = true, Optional metadata As JObject = Nothing)

Parameters

name
String

The name of this field

dataType
DataType

The data type of this field

isNullable
Boolean

Indicates if values of this field can be null

metadata
Newtonsoft.Json.Linq.JObject

The metadata of this field

Applies to