@Public public final class DateType extends DataType
year-month-day
with values ranging from 0000-01-01
to 9999-12-31
. Compared to the SQL standard, the range starts at year 0000
.
A conversion from and to int
describes the number of days since epoch.
Constructor and Description |
---|
DateType() |
DateType(boolean isNullable) |
Modifier and Type | Method and Description |
---|---|
<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.
|
collectFieldIds, copy, equals, equalsIgnoreNullable, getTypeRoot, hashCode, is, is, isAnyOf, isAnyOf, isNullable, notNull, nullable, serializeJson, toString, withNullability
public DataType copy(boolean isNullable)
DataType
public String asSQLString()
DataType
asSQLString
in class DataType
public <R> R accept(DataTypeVisitor<R> visitor)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.