Package org.apache.spark.sql.types
Class TimestampNTZType
Object
org.apache.spark.sql.types.DataType
org.apache.spark.sql.types.TimestampNTZType
The timestamp without time zone type represents a local time in microsecond precision, which is
independent of time zone. Its valid range is [0001-01-01T00:00:00.000000,
9999-12-31T23:59:59.999999]. To represent an absolute point in time, use
TimestampType
instead.
Please use the singleton DataTypes.TimestampNTZType
to refer the type.
- Since:
- 3.4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract static boolean
static String
int
The default size of a value of the TimestampNTZType is 8 bytes.abstract static boolean
static String
json()
static String
abstract static int
abstract static Object
productElement
(int n) static String
productElementName
(int n) static scala.collection.Iterator<String>
static scala.collection.Iterator<Object>
static String
static String
static String
sql()
typeName()
Name of the type used in JSON serialization.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
-
Constructor Details
-
TimestampNTZType
public TimestampNTZType()
-
-
Method Details
-
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 TimestampNTZType is 8 bytes.- Specified by:
defaultSize
in classDataType
- Returns:
- (undocumented)
-
typeName
Description copied from class:DataType
Name of the type used in JSON serialization.
-