Class Types.DecimalType

All Implemented Interfaces:
Type
Enclosing class:
Types

public static class Types.DecimalType extends Type.FractionType
The decimal type in Gravitino.
  • Method Details

    • of

      public static Types.DecimalType of(int precision, int scale)
      Parameters:
      precision - The precision of the decimal type.
      scale - The scale of the decimal type.
      Returns:
      A Types.DecimalType with the given precision and scale.
    • name

      public Type.Name 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

      public String simpleString()
      Returns:
      A readable string representation for the type.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object