/** * Standard Writable method that serialize the fields of this object to a DataOutput. * */ @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); }
hdw.write(dos); break;
return; case DataType.DECIMAL: new HiveDecimalWritable((HiveDecimal)val).write(out); return; case DataType.DATE:
/** * Standard Writable method that serialize the fields of this object to a DataOutput. * */ @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); }
hdw.write(dos); break;
return; case DataType.DECIMAL: new HiveDecimalWritable((HiveDecimal)val).write(out); return; case DataType.DATE:
return; case DataType.DECIMAL: new HiveDecimalWritable((HiveDecimal)val).write(out); return; case DataType.DATE:
return; case DataType.DECIMAL: new HiveDecimalWritable((HiveDecimal)val).write(out); return; case DataType.DATE:
return; case DataType.DECIMAL: new HiveDecimalWritable((HiveDecimal)val).write(out); return; case DataType.DATE: