Package org.apache.spark.sql.types
Class TimestampType
Object
org.apache.spark.sql.types.DataType
org.apache.spark.sql.types.TimestampType
The timestamp type represents a time instant in microsecond precision. Valid range is
[0001-01-01T00:00:00.000000Z, 9999-12-31T23:59:59.999999Z] where the left/right-bound is a date
and time of the proleptic Gregorian calendar in UTC+00:00.
Please use the singleton DataTypes.TimestampType to refer the type.
- Since:
- 1.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract static booleanstatic StringintThe default size of a value of the TimestampType is 8 bytes.abstract static booleanstatic Stringjson()static Stringabstract static intabstract static ObjectproductElement(int n) static StringproductElementName(int n) static scala.collection.Iterator<String>static scala.collection.Iterator<Object>static Stringstatic Stringstatic Stringsql()static StringtypeName()Methods inherited from class org.apache.spark.sql.types.DataType
catalogString, COLLATIONS_METADATA_KEY, equalsIgnoreCaseAndNullability, equalsIgnoreNullability, equalsStructurally, equalsStructurallyByName, fromDDL, fromJson, json, parseTypeWithFallback, prettyJson, simpleString, sql, typeName
-
Constructor Details
-
TimestampType
public TimestampType()
-
-
Method Details
-
typeName
-
json
-
prettyJson
-
simpleString
-
catalogString
-
sql
-
canEqual
-
equals
-
productArity
public abstract static int productArity() -
productElement
-
productIterator
-
productPrefix
-
productElementName
-
productElementNames
-
defaultSize
public int defaultSize()The default size of a value of the TimestampType is 8 bytes.- Specified by:
defaultSizein classDataType- Returns:
- (undocumented)
-