Share via


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
StructType

Constructors

StructType(IEnumerable<StructField>)

Constructor for StructType class.

Properties

Fields

Returns a list of StructFieldType objects.

Json

The compact JSON representation of this data type.

(Inherited from DataType)
SimpleString

Returns a readable string that represents this type.

TypeName

Normalized type name.

(Inherited from DataType)

Methods

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()

Returns the hash code of the current object.

(Inherited from DataType)

Applies to