StructType StructType StructType Class

Definition

Struct type represents a struct with multiple fields. This type is also used to represent a Row object in Spark.

public sealed class StructType : Microsoft.Spark.Sql.Types.DataType
type StructType = class
    inherit DataType
Public NotInheritable Class StructType
Inherits DataType
Inheritance
StructTypeStructTypeStructType

Constructors

StructType(IEnumerable<StructField>) StructType(IEnumerable<StructField>) StructType(IEnumerable<StructField>)

Constructor for StructType class.

Properties

Fields Fields Fields

Returns a list of StructFieldType objects.

Json Json Json

The compact JSON representation of this data type.

(Inherited from DataType)
SimpleString SimpleString SimpleString

Returns a readable string that represents this type.

TypeName TypeName TypeName

Normalized type name.

(Inherited from DataType)

Methods

Equals(Object) Equals(Object) Equals(Object)

Checks if the given object is same as the current object by checking the string version of this type.

(Inherited from DataType)
GetHashCode() GetHashCode() GetHashCode()

Returns the hash code of the current object.

(Inherited from DataType)

Applies to