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]); } }
public override void Serialize(double record, IDataOutputView target) => target.WriteDouble(record);
public override void Copy(IDataInputView source, IDataOutputView target) => target.WriteDouble(source.ReadDouble());