Home | Trees | Indices | Help |
|
---|
|
object --+ | DataType --+ | MapType
Spark SQL MapType
The data type representing dict values. A MapType object comprises three fields, keyType (a DataType), valueType (a DataType) and valueContainsNull (a bool).
The field of keyType is used to specify the type of keys in the map. The field of valueType is used to specify the type of values in the map. The field of valueContainsNull is used to specify if values of this map has None values.
For values of a MapType column, keys are not allowed to have None values.
Instance Methods | |||
|
|||
|
|||
Inherited from Inherited from |
Properties | |
Inherited from |
Method Details |
Creates a MapType :param keyType: the data type of keys. :param valueType: the data type of values. :param valueContainsNull: indicates whether values contains null values. >>> (MapType(StringType, IntegerType) ... == MapType(StringType, IntegerType, True)) True >>> (MapType(StringType, IntegerType, False) ... == MapType(StringType, FloatType)) False
|
repr(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 11 01:19:41 2014 | http://epydoc.sourceforge.net |