Package io.trino.plugin.hive.util
Class DecimalUtils
java.lang.Object
io.trino.plugin.hive.util.DecimalUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Int128getLongDecimalValue(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 Details
-
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 Int128 getLongDecimalValue(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable writable, int columnScale)
-