Package org.apache.gravitino.rel.types
Class Types.TimeType
java.lang.Object
org.apache.gravitino.rel.types.Type.PrimitiveType
org.apache.gravitino.rel.types.Type.DateTimeType
org.apache.gravitino.rel.types.Types.TimeType
- All Implemented Interfaces:
Type
- Enclosing class:
- Types
The time type in Gravitino.
-
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
Fields inherited from class org.apache.gravitino.rel.types.Type.DateTimeType
DATE_TIME_PRECISION_NOT_SET, MAX_ALLOWED_PRECISION, MIN_ALLOWED_PRECISION -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Types.TimeTypeget()inthashCode()booleanname()static Types.TimeTypeof(int precision) inttoString()
-
Method Details
-
get
- Returns:
- The singleton instance of
Types.TimeType.
-
of
- Parameters:
precision- The precision of the time type.- Returns:
- A
Types.TimeTypewith the given precision.
-
precision
public int precision()- Returns:
- The precision of the time type.
-
hasPrecisionSet
public boolean hasPrecisionSet()- Returns:
- True if the time type has precision set, false otherwise.
-
name
- Returns:
- The generic name of the type.
-
simpleString
- Returns:
- A readable string representation for the type.
-
equals
-
hashCode
public int hashCode() -
toString
-