pyspark.sql.types.
ArrayType
Array data type.
elementType – DataType of each element in the array.
DataType
containsNull – boolean, whether the array can contain null (None) values.
__init__
>>> ArrayType(StringType()) == ArrayType(StringType(), True) True >>> ArrayType(StringType(), False) == ArrayType(StringType()) False
Methods
__init__(elementType[, containsNull])
>>> ArrayType(StringType()) == ArrayType(StringType(), True)
fromInternal(obj)
fromInternal
Converts an internal SQL object into a native Python object.
fromJson(json)
fromJson
json()
json
jsonValue()
jsonValue
needConversion()
needConversion
Does this type needs conversion between Python object and internal SQL object.
simpleString()
simpleString
toInternal(obj)
toInternal
Converts a Python object into an internal SQL object.
typeName()
typeName