Package org.apache.pinot.spi.utils
Class BigDecimalUtils
- java.lang.Object
-
- org.apache.pinot.spi.utils.BigDecimalUtils
-
public class BigDecimalUtils extends Object
-
-
Method Summary
Modifier and Type Method Description static intbyteSize(BigDecimal value)Returns the number of bytes in the serialized big decimal.static BigDecimaldeserialize(byte[] bytes)Deserializes a big decimal from a byte array.static BigDecimaldeserialize(ByteBuffer byteBuffer)Deserializes a big decimal from ByteBuffer.static BigDecimaldeserialize(ByteArray byteArray)Deserializes a big decimal from ByteArray.static byte[]serialize(BigDecimal value)Serializes a big decimal to a byte array.
-
-
-
Method Detail
-
byteSize
public static int byteSize(BigDecimal value)
Returns the number of bytes in the serialized big decimal.
-
serialize
public static byte[] serialize(BigDecimal value)
Serializes a big decimal to a byte array.
-
deserialize
public static BigDecimal deserialize(byte[] bytes)
Deserializes a big decimal from a byte array.
-
deserialize
public static BigDecimal deserialize(ByteArray byteArray)
Deserializes a big decimal from ByteArray.
-
deserialize
public static BigDecimal deserialize(ByteBuffer byteBuffer)
Deserializes a big decimal from ByteBuffer.
-
-