Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

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


+
Jeremy Lewi 2012-03-11, 20:40
+
easyvoip@... 2012-03-11, 20:52
+
Jeremy Lewi 2012-03-11, 21:22
+
James Baldassari 2012-03-12, 01:20
+
Jeremy Lewi 2012-03-12, 02:37
+
Jeremy Lewi 2012-03-12, 04:07
+
Jeremy Lewi 2012-03-12, 04:26
+
James Baldassari 2012-03-12, 05:22
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.

Doug
+
Jeremy Lewi 2012-03-12, 16:27
+
Scott Carey 2012-03-12, 17:20
+
Doug Cutting 2012-03-12, 17:42
+
Jeremy Lewi 2012-03-12, 18:09
+
Doug Cutting 2012-03-12, 18:45
+
Scott Carey 2012-03-12, 22:38
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB