Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # user >> Make a copy of an avro record

Copy link to this message
Re: Make a copy of an avro record
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.