数据类型

ArrayType(应用[containsNull])

数组数据类型。

BinaryType

二进制数据类型(字节数组)。

BooleanType

布尔数据类型。

ByteType

字节数据类型,例如

数据类型

基类数据类型。

DateType

日期(datetime.date)数据类型。

DecimalType((精度、规模))

小数(decimal.Decimal)数据类型。

倍增式

双数据类型,表示双精度浮点数。

FloatType

浮点数据类型,代表单精度浮点数。

IntegerType

Int数据类型,例如

LongType

长数据类型,即。

MapType(keyType valueType [, valueContainsNull])

地图数据类型。

NullType

空类型。

ShortType

短数据类型,即。

StringType

字符串数据类型。

VarcharType(长度)

Varchar数据类型

StructField(名称、数据类型(可空,元数据))

一个字段StructType

StructType((领域))

结构体类型的列表组成StructField

TimestampType

时间戳(datetime.datetime)数据类型。

DayTimeIntervalType([startField endField])

DayTimeIntervalType (datetime.timedelta)。