Package io.trino.type
Class DecimalSaturatedFloorCasts
java.lang.Object
io.trino.type.DecimalSaturatedFloorCasts
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SqlScalarFunctionstatic final SqlScalarFunctionstatic final SqlScalarFunctionstatic final SqlScalarFunctionstatic final SqlScalarFunctionstatic final SqlScalarFunctionstatic final SqlScalarFunctionstatic final SqlScalarFunctionstatic final SqlScalarFunction -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
DECIMAL_TO_DECIMAL_SATURATED_FLOOR_CAST
-
DECIMAL_TO_BIGINT_SATURATED_FLOOR_CAST
-
DECIMAL_TO_INTEGER_SATURATED_FLOOR_CAST
-
DECIMAL_TO_SMALLINT_SATURATED_FLOOR_CAST
-
DECIMAL_TO_TINYINT_SATURATED_FLOOR_CAST
-
BIGINT_TO_DECIMAL_SATURATED_FLOOR_CAST
-
INTEGER_TO_DECIMAL_SATURATED_FLOOR_CAST
-
SMALLINT_TO_DECIMAL_SATURATED_FLOOR_CAST
-
TINYINT_TO_DECIMAL_SATURATED_FLOOR_CAST
-
-
Method Details
-
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
-
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)
-