Data Types

ArrayType(elementType[, containsNull])

Array data type.

BinaryType

Binary (byte array) data type.

BooleanType

Boolean data type.

ByteType

Byte data type, i.e.

DataType

Base class for data types.

DateType

Date (datetime.date) data type.

DecimalType([precision, scale])

Decimal (decimal.Decimal) data type.

DoubleType

Double data type, representing double precision floats.

FloatType

Float data type, representing single precision floats.

IntegerType

Int data type, i.e.

LongType

Long data type, i.e.

MapType(keyType, valueType[, valueContainsNull])

Map data type.

NullType

Null type.

ShortType

Short data type, i.e.

StringType

String data type.

VarcharType(length)

Varchar data type

StructField(name, dataType[, nullable, metadata])

A field in StructType.

StructType([fields])

Struct type, consisting of a list of StructField.

TimestampType

Timestamp (datetime.datetime) data type.

DayTimeIntervalType([startField, endField])

DayTimeIntervalType (datetime.timedelta).