Ha! Got it working. Thanks!
On Mon, Mar 21, 2011 at 11:20 AM, Doug Cutting <[email protected]> wrote: > On 03/21/2011 10:47 AM, Curtis Jensen wrote: >> In one of my iterations of trying to get this to work, I tried the >> straight array schema you suggested. However, in Java, how do I >> create a "User" record? After parsing the schema, the only schema >> object I can create from it is an Array object. How do I populate the >> array? > > If you're using the generic data representation, then you can create a > new instance of a User with something like: > > new GenericData.Record(arraySchema.getElementType()); > > Doug >
