Package org.apache.gravitino.rel.types
Class Types.DecimalType
java.lang.Object
org.apache.gravitino.rel.types.Type.PrimitiveType
org.apache.gravitino.rel.types.Type.NumericType
org.apache.gravitino.rel.types.Type.FractionType
org.apache.gravitino.rel.types.Types.DecimalType
- All Implemented Interfaces:
Type
- Enclosing class:
- Types
The decimal 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 -
Method Summary
-
Method Details
-
of
- Parameters:
precision- The precision of the decimal type.scale- The scale of the decimal type.- Returns:
- A
Types.DecimalTypewith the given precision and scale.
-
name
- Returns:
- The name of the decimal type.
-
precision
public int precision()- Returns:
- The precision of the decimal type.
-
scale
public int scale()- Returns:
- The scale of the decimal type.
-
simpleString
- Returns:
- A readable string representation for the type.
-
equals
-
hashCode
public int hashCode()
-