public override void Serialize(double[] record, IDataOutputView target)
        {
            if (record == null)
            {
                throw new IllegalArgumentException("The record must not be null.");
            }

            var len = record.Length;

            target.WriteInt(len);
            for (var i = 0; i < len; i++)
            {
                target.WriteDouble(record[i]);
            }
        }
Example #2
0
 public override void Serialize(double record, IDataOutputView target) => target.WriteDouble(record);
Example #3
0
 public override void Copy(IDataInputView source, IDataOutputView target) => target.WriteDouble(source.ReadDouble());