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 io.airlift.slice.SlicegenericIntegerTypeToLongDecimal(long value, int resultPrecision, int resultScale)static longgenericIntegerTypeToShortDecimal(long value, int resultPrecision, int resultScale)static longlongDecimalToGenericIntegerType(io.airlift.slice.Slice value, int sourceScale, long minValue, long maxValue)static io.airlift.slice.SlicelongDecimalToLongDecimal(io.airlift.slice.Slice value, int sourcePrecision, int sourceScale, int resultPrecision, int resultScale)static longlongDecimalToShortDecimal(io.airlift.slice.Slice value, int sourcePrecision, int sourceScale, int resultPrecision, int resultScale)static longshortDecimalToGenericIntegerType(long value, int sourceScale, long minValue, long maxValue)static io.airlift.slice.SliceshortDecimalToLongDecimal(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 io.airlift.slice.Slice shortDecimalToLongDecimal(long value, int sourcePrecision, int sourceScale, int resultPrecision, int resultScale)
-
longDecimalToShortDecimal
public static long longDecimalToShortDecimal(io.airlift.slice.Slice value, int sourcePrecision, int sourceScale, int resultPrecision, int resultScale)
-
longDecimalToLongDecimal
public static io.airlift.slice.Slice longDecimalToLongDecimal(io.airlift.slice.Slice 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(io.airlift.slice.Slice value, int sourceScale, long minValue, long maxValue)
-
genericIntegerTypeToShortDecimal
public static long genericIntegerTypeToShortDecimal(long value, int resultPrecision, int resultScale)
-
genericIntegerTypeToLongDecimal
public static io.airlift.slice.Slice genericIntegerTypeToLongDecimal(long value, int resultPrecision, int resultScale)
-
-