Package io.trino.type
Class DecimalSaturatedFloorCasts
- java.lang.Object
-
- io.trino.type.DecimalSaturatedFloorCasts
-
public final class DecimalSaturatedFloorCasts extends Object
-
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Int128genericIntegerTypeToLongDecimal(long value, int resultPrecision, int resultScale)static longgenericIntegerTypeToShortDecimal(long value, int resultPrecision, int resultScale)static longlongDecimalToGenericIntegerType(Int128 value, int sourceScale, long minValue, long maxValue)static Int128longDecimalToLongDecimal(Int128 value, int sourcePrecision, int sourceScale, int resultPrecision, int resultScale)static longlongDecimalToShortDecimal(Int128 value, int sourcePrecision, int sourceScale, int resultPrecision, int resultScale)static longshortDecimalToGenericIntegerType(long value, int sourceScale, long minValue, long maxValue)static Int128shortDecimalToLongDecimal(long value, int sourcePrecision, int sourceScale, int resultPrecision, int resultScale)static longshortDecimalToShortDecimal(long value, int sourcePrecision, int sourceScale, int resultPrecision, int resultScale)
-
-
-
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)
-
-