Serializable
, scala.Equals
, scala.Product
The data type for Maps. Keys in a map are not allowed to have
null
values.
Please use DataTypes.createMapType()
to create a specific instance.
param: keyType The data type of map keys. param: valueType The data type of map values. param: valueContainsNull Indicates if map values have null
values.
Constructors
No-arg constructor for kryo.
Construct a
MapType
object with the given key type and value type.
String representation for the type saved in external catalogs.
int
The default size of a value of the MapType is (the default size of the key type + the default size of the value type).
Readable string representation for the type.
Returns the same data type but set all nullability fields are true (StructField.nullable
, ArrayType.containsNull
, and MapType.valueContainsNull
).
boolean
COLLATIONS_METADATA_KEY, equalsIgnoreCaseAndNullability, equalsIgnoreNullability, equalsStructurally, equalsStructurallyByName, fromDDL, fromJson, json, parseTypeWithFallback, prettyJson, typeName
Methods inherited from interface scala.EqualscanEqual, equals
Methods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
public MapType()
No-arg constructor for kryo.
Construct a
MapType
object with the given key type and value type. The
valueContainsNull
is true.
keyType
- (undocumented)
valueType
- (undocumented)
public boolean valueContainsNull()
public int defaultSize()
The default size of a value of the MapType is (the default size of the key type + the default size of the value type). We assume that there is only 1 element on average in a map. See SPARK-18853.
defaultSize
in class DataType
Readable string representation for the type.
simpleString
in class DataType
()
String representation for the type saved in external catalogs.
catalogString
in class DataType
Returns the same data type but set all nullability fields are true (
StructField.nullable
,
ArrayType.containsNull
, and
MapType.valueContainsNull
).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4