Package io.trino.plugin.hive.util
Class DecimalUtils
- java.lang.Object
-
- io.trino.plugin.hive.util.DecimalUtils
-
public final class DecimalUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.airlift.slice.SlicegetLongDecimalValue(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable writable, int columnScale)static longgetShortDecimalValue(byte[] bytes)static longgetShortDecimalValue(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable writable, int columnScale)
-
-
-
Method Detail
-
getShortDecimalValue
public static long getShortDecimalValue(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable writable, int columnScale)
-
getShortDecimalValue
public static long getShortDecimalValue(byte[] bytes)
-
getLongDecimalValue
public static io.airlift.slice.Slice getLongDecimalValue(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable writable, int columnScale)
-
-