public class TimestampType extends NativeType
java.sql.Timestamp
values.
Please use the singleton DataTypes.TimestampType
.
Modifier and Type | Method and Description |
---|---|
TimestampType |
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 the TimestampType is 12 bytes.
|
Object |
ordering() |
scala.reflect.api.TypeTags.TypeTag<java.sql.Timestamp> |
tag() |
all, classTag, unapply
equalsIgnoreCompatibleNullability, equalsIgnoreNullability, fromCaseClassString, fromJson, isPrimitive, json, jsonValue, prettyJson, sameType, simpleString, typeName, unapply
public scala.reflect.api.TypeTags.TypeTag<java.sql.Timestamp> tag()
public Object ordering()
public int defaultSize()
defaultSize
in class DataType
public TimestampType asNullable()
DataType
StructField.nullable
, ArrayType.containsNull
, and MapType.valueContainsNull
).asNullable
in class DataType