@HiveDecimalVersionV2
  public int toDigitsOnlyBytes(
      byte[] scratchBuffer) {
    return
        fastToDigitsOnlyBytes(
            scratchBuffer);
  }
Convert decimal to just the digits -- no dot.
<p>
Currently used by BinarySortable serialization.
<p>
A faster way to get just the digits than calling unscaledValue.toString().getBytes().
storage-api/src/java/org/apache/hadoop/hive/common/type/HiveDecimal.java