@Public public final class LocalZonedTimestampType extends DataType
year-month-day
hour:minute:second[.fractional] zone with up to nanosecond precision and values ranging from
0000-01-01 00:00:00.000000000 +14:59 to 9999-12-31 23:59:59.999999999 -14:59.
Leap seconds (23:59:60 and 23:59:61) are not supported as the semantics are closer to OffsetDateTime.
This type fills the gap between time zone free and time zone mandatory timestamp types by
allowing the interpretation of UTC timestamps according to the configured session time zone. A
conversion from and to int describes the number of seconds since epoch. A conversion from
and to long describes the number of milliseconds since epoch.
TimestampType,
序列化表格| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_PRECISION |
static int |
MAX_PRECISION |
static int |
MIN_PRECISION |
| 构造器和说明 |
|---|
LocalZonedTimestampType() |
LocalZonedTimestampType(boolean isNullable,
int precision) |
LocalZonedTimestampType(int precision) |
| 限定符和类型 | 方法和说明 |
|---|---|
<R> R |
accept(DataTypeVisitor<R> visitor) |
String |
asSQLString()
Returns a string that summarizes this type as SQL standard string for printing to a console.
|
DataType |
copy(boolean isNullable)
Returns a deep copy of this type with possibly different nullability.
|
boolean |
equals(Object o) |
int |
getPrecision() |
int |
hashCode() |
collectFieldIds, copy, equalsIgnoreNullable, getTypeRoot, is, is, isAnyOf, isAnyOf, isNullable, notNull, nullable, serializeJson, toString, withNullabilitypublic static final int MIN_PRECISION
public static final int MAX_PRECISION
public static final int DEFAULT_PRECISION
public LocalZonedTimestampType(boolean isNullable,
int precision)
public LocalZonedTimestampType(int precision)
public LocalZonedTimestampType()
public int getPrecision()
public DataType copy(boolean isNullable)
DataTypepublic String asSQLString()
DataTypeasSQLString 在类中 DataTypepublic <R> R accept(DataTypeVisitor<R> visitor)
Copyright © 2023 The Apache Software Foundation. All rights reserved.