MapType¶
-
class
pyspark.sql.types.
MapType
(keyType, valueType, valueContainsNull=True)[source]¶ Map data type.
- Parameters
Keys in a map data type are not allowed to be null (None).
Methods
Methods Documentation
-
json
()¶
-
needConversion
()[source]¶ Does this type needs conversion between Python object and internal SQL object.
This is used to avoid the unnecessary conversion for ArrayType/MapType/StructType.
-
classmethod
typeName
()¶