avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Make a copy of an avro record
Date Mon, 12 Mar 2012 16:05:52 GMT
On 03/11/2012 10:22 PM, James Baldassari wrote:
> If you want to make a deep copy of a specific record, the easiest way is
> probably to use the Builder API,
> e.g. GraphNodeData.newBuilder(recordToCopy).build().

SpecificData.get().deepCopy(record) should work too.

Doug

Mime
View raw message