Package org.apache.gravitino.rel.types
Class Type.DateTimeType
java.lang.Object
org.apache.gravitino.rel.types.Type.PrimitiveType
org.apache.gravitino.rel.types.Type.DateTimeType
- All Implemented Interfaces:
Type
- Direct Known Subclasses:
Types.DateType,Types.TimestampType,Types.TimeType
- Enclosing interface:
- Type
The base type of all date/time types.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.rel.types.Type
Type.ComplexType, Type.DateTimeType, Type.FractionType, Type.IntegralType, Type.IntervalType, Type.Name, Type.NumericType, Type.PrimitiveType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intIndicates that precision for the date/time type was not explicitly set by the user.protected static final intRepresents the maximum precision allowed for timestamp, time and other date/time types.protected static final intRepresents the minimum precision range for timestamp, time and other date/time types. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.gravitino.rel.types.Type
name, simpleString
-
Field Details
-
DATE_TIME_PRECISION_NOT_SET
protected static final int DATE_TIME_PRECISION_NOT_SETIndicates that precision for the date/time type was not explicitly set by the user. The value should be converted to the catalog's default precision.- See Also:
-
MIN_ALLOWED_PRECISION
protected static final int MIN_ALLOWED_PRECISIONRepresents the minimum precision range for timestamp, time and other date/time types. The minimum precision is 0, which means second-level precision.- See Also:
-
MAX_ALLOWED_PRECISION
protected static final int MAX_ALLOWED_PRECISIONRepresents the maximum precision allowed for timestamp, time and other date/time types. The maximum precision is 12, which means picosecond-level precision.- See Also:
-
-
Constructor Details
-
DateTimeType
public DateTimeType()
-