public class NullType extends DataType
NULL
values. Please use the singleton DataTypes.NullType
.
Modifier and Type | Method and Description |
---|---|
NullType |
asNullable()
Returns the same data type but set all nullability fields are true
(
StructField.nullable , ArrayType.containsNull , and MapType.valueContainsNull ). |
int |
defaultSize()
The default size of a value of this data type.
|
equalsIgnoreCompatibleNullability, equalsIgnoreNullability, fromCaseClassString, fromJson, isPrimitive, json, jsonValue, prettyJson, sameType, simpleString, typeName, unapply
public int defaultSize()
DataType
defaultSize
in class DataType
public NullType asNullable()
DataType
StructField.nullable
, ArrayType.containsNull
, and MapType.valueContainsNull
).asNullable
in class DataType