Class DecimalType

java.lang.Object
io.trino.spi.type.AbstractType
io.trino.spi.type.DecimalType
All Implemented Interfaces:
FixedWidthType, Type

public abstract sealed class DecimalType extends AbstractType implements FixedWidthType
  • Field Details

  • Method Details

    • createDecimalType

      public static DecimalType createDecimalType(int precision, int scale)
    • createDecimalType

      public static DecimalType createDecimalType(int precision)
    • createDecimalType

      public static DecimalType createDecimalType()
    • isComparable

      public final boolean isComparable()
      Description copied from interface: Type
      True if the type supports equalTo and hash.
      Specified by:
      isComparable in interface Type
      Overrides:
      isComparable in class AbstractType
    • isOrderable

      public final boolean isOrderable()
      Description copied from interface: Type
      True if the type supports compareTo.
      Specified by:
      isOrderable in interface Type
      Overrides:
      isOrderable in class AbstractType
    • getPrecision

      public int getPrecision()
    • getScale

      public int getScale()
    • isShort

      public boolean isShort()