@HiveDecimalWritableVersionV1
  @Override
  public void write(DataOutput out) throws IOException {
    if (!isSet()) {
      throw new RuntimeException("no value set");
    }

    if (internalScratchLongs == null) {
      internalScratchLongs = new long[FastHiveDecimal.FAST_SCRATCH_LONGS_LEN];
      internalScratchBuffer = new byte[FastHiveDecimal.FAST_SCRATCH_BUFFER_LEN_BIG_INTEGER_BYTES];
    }

    write(out, internalScratchLongs, internalScratchBuffer);
  }
Standard Writable method that serialize the fields of this object to a DataOutput.
storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDecimalWritable.java