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 >> how to fill in an array (list) from java


+
Robey Pointer 2010-04-08, 04:20
Copy link to this message
-
Re: how to fill in an array (list) from java
Is this useful to you?

http://code.google.com/p/thrift-protobuf-compare/source/browse/trunk/tpc/src/serializers/avro/AvroGenericSerializer.java

That's part of the benchmark discussed here:

http://code.google.com/p/thrift-protobuf-compare/wiki/Benchmarking

 - Bruce

On Wed, Apr 7, 2010 at 10:20 PM, Robey Pointer <[EMAIL PROTECTED]> wrote:

> As part of some performance testing I started doing (here:
> http://github.com/robey/avrotest), I needed to build a list/array of
> structs from inside java. I ended up writing this:
>
>  results.edges = new GenericData.Array[Edge](2,
> results.getSchema().getField("edges").schema())
>
> which is obviously the wrong way to do it. :) It's just the only way I
> could figure out from scanning the java source.
>
> What's the right way to do that?
>
> robey
>
>
+
Robey Pointer 2010-04-09, 22:23
+
Doug Cutting 2010-04-09, 22:30
+
Scott Carey 2010-04-10, 00:03
+
Robey Pointer 2010-04-10, 01:26
+
Doug Cutting 2010-04-12, 16:40
+
Kevin Oliver 2010-04-12, 20:17
+
Jeff Hodges 2010-04-12, 20:56
+
Robey Pointer 2010-04-13, 06:17
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