Class DecimalUtil

java.lang.Object
org.apache.iceberg.util.DecimalUtil

public class DecimalUtil extends Object
  • Method Details

    • toReusedFixLengthBytes

      public static byte[] toReusedFixLengthBytes(int precision, int scale, BigDecimal decimal, byte[] reuseBuf)
      Convert a BigDecimal to reused fix length bytes, the extra bytes are filled according to the signum.