public class MapType extends DataType implements scala.Product, scala.Serializable
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.
Constructor and Description |
---|
MapType()
No-arg constructor for kryo.
|
MapType(DataType keyType,
DataType valueType,
boolean valueContainsNull) |
Modifier and Type | Method and Description |
---|---|
static MapType |
apply(DataType keyType,
DataType valueType)
Construct a
MapType object with the given key type and value type. |
abstract static boolean |
canEqual(java.lang.Object that) |
static java.lang.String |
catalogString() |
int |
defaultSize()
The default size of a value of the MapType is
100 * (the default size of the key type + the default size of the value type).
|
abstract static boolean |
equals(java.lang.Object that) |
static java.lang.String |
json() |
DataType |
keyType() |
static java.lang.String |
prettyJson() |
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
java.lang.String |
simpleString()
Readable string representation for the type.
|
java.lang.String |
sql() |
static java.lang.String |
typeName() |
boolean |
valueContainsNull() |
DataType |
valueType() |
buildFormattedString, catalogString, fromJson, json, prettyJson, typeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static MapType apply(DataType keyType, DataType valueType)
MapType
object with the given key type and value type.
The valueContainsNull
is true.keyType
- (undocumented)valueType
- (undocumented)public static java.lang.String typeName()
public static java.lang.String json()
public static java.lang.String prettyJson()
public static java.lang.String catalogString()
public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public DataType keyType()
public DataType valueType()
public boolean valueContainsNull()
public int defaultSize()
defaultSize
in class DataType
public java.lang.String simpleString()
DataType
simpleString
in class DataType