Package io.trino.type

Class DecimalSaturatedFloorCasts


  • public final class DecimalSaturatedFloorCasts
    extends Object
    • Field Detail

      • DECIMAL_TO_DECIMAL_SATURATED_FLOOR_CAST

        public static final SqlScalarFunction DECIMAL_TO_DECIMAL_SATURATED_FLOOR_CAST
      • DECIMAL_TO_BIGINT_SATURATED_FLOOR_CAST

        public static final SqlScalarFunction DECIMAL_TO_BIGINT_SATURATED_FLOOR_CAST
      • DECIMAL_TO_INTEGER_SATURATED_FLOOR_CAST

        public static final SqlScalarFunction DECIMAL_TO_INTEGER_SATURATED_FLOOR_CAST
      • DECIMAL_TO_SMALLINT_SATURATED_FLOOR_CAST

        public static final SqlScalarFunction DECIMAL_TO_SMALLINT_SATURATED_FLOOR_CAST
      • DECIMAL_TO_TINYINT_SATURATED_FLOOR_CAST

        public static final SqlScalarFunction DECIMAL_TO_TINYINT_SATURATED_FLOOR_CAST
      • BIGINT_TO_DECIMAL_SATURATED_FLOOR_CAST

        public static final SqlScalarFunction BIGINT_TO_DECIMAL_SATURATED_FLOOR_CAST
      • INTEGER_TO_DECIMAL_SATURATED_FLOOR_CAST

        public static final SqlScalarFunction INTEGER_TO_DECIMAL_SATURATED_FLOOR_CAST
      • SMALLINT_TO_DECIMAL_SATURATED_FLOOR_CAST

        public static final SqlScalarFunction SMALLINT_TO_DECIMAL_SATURATED_FLOOR_CAST
      • TINYINT_TO_DECIMAL_SATURATED_FLOOR_CAST

        public static final SqlScalarFunction TINYINT_TO_DECIMAL_SATURATED_FLOOR_CAST
    • Method Detail

      • shortDecimalToShortDecimal

        public static long shortDecimalToShortDecimal​(long value,
                                                      int sourcePrecision,
                                                      int sourceScale,
                                                      int resultPrecision,
                                                      int resultScale)
      • shortDecimalToLongDecimal

        public static Int128 shortDecimalToLongDecimal​(long value,
                                                       int sourcePrecision,
                                                       int sourceScale,
                                                       int resultPrecision,
                                                       int resultScale)
      • longDecimalToShortDecimal

        public static long longDecimalToShortDecimal​(Int128 value,
                                                     int sourcePrecision,
                                                     int sourceScale,
                                                     int resultPrecision,
                                                     int resultScale)
      • longDecimalToLongDecimal

        public static Int128 longDecimalToLongDecimal​(Int128 value,
                                                      int sourcePrecision,
                                                      int sourceScale,
                                                      int resultPrecision,
                                                      int resultScale)
      • shortDecimalToGenericIntegerType

        public static long shortDecimalToGenericIntegerType​(long value,
                                                            int sourceScale,
                                                            long minValue,
                                                            long maxValue)
      • longDecimalToGenericIntegerType

        public static long longDecimalToGenericIntegerType​(Int128 value,
                                                           int sourceScale,
                                                           long minValue,
                                                           long maxValue)
      • genericIntegerTypeToShortDecimal

        public static long genericIntegerTypeToShortDecimal​(long value,
                                                            int resultPrecision,
                                                            int resultScale)
      • genericIntegerTypeToLongDecimal

        public static Int128 genericIntegerTypeToLongDecimal​(long value,
                                                             int resultPrecision,
                                                             int resultScale)