You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@gora.apache.org by buzz heavyyear <bu...@hotmail.com> on 2013/06/18 19:28:59 UTC

getField, setField in org.apache.gora.avro.PersistentDatumReader

Hi,
I'm busy reading through your excellent code, compiling various snippets to understand how things work and I'm having problems in trying to compile PersistentDatumReader - it's unable to find getField(record, name, pos) and setField(record, name, pos, ....) in Object readRecord(Object old, Schema expected, ResolvingDecoder in);
I have a feeling that I've missed an installation step somewhere. Could anyone give me a pointer on what I should have done to get this to compile.
Thanks,Nick. 		 	   		  

Re: getField, setField in org.apache.gora.avro.PersistentDatumReader

Posted by Lewis John Mcgibbney <le...@gmail.com>.
That sure is a rocky road right enough.
We're in the process of making the Avro upgrade to 1.7.x in Gora and it is
not trivial, although we were given a huge pointer by Ed a while back.
I wonder if you've been able to grab/or even seen the Avro patches I put up
on our Jira last week? They will undoubtedly help you a long way of doing
the Avro upgrade... unfortunately your on your own with the C++ stuff ;)
Thanks

On Wednesday, June 19, 2013, buzz heavyyear <bu...@hotmail.com>
wrote:
> Hi Guys,
> Sincere apologies over this, I have egg on my face as I didn't dig deep
enough.
> I'm trying to merge the latest avro branch with gora with a view to
pruning anything which is redundant and then converting to C++ for use in
an embedded device. It's a hard and rocky road. Thanks for pointing
out SpecificDatumReader. In, I think, Avro 1.6.0, getFields, setFields have
been moved to GenericData; so prepending getFields/setFields with getData()
works - just needs to be tested.
> Thanks again for the time you spent dealing with this.
> Cheers
> Nick
>
> ________________________________
> Date: Tue, 18 Jun 2013 13:48:10 -0700
> Subject: Re: getField, setField in
org.apache.gora.avro.PersistentDatumReader
> From: lewis.mcgibbney@gmail.com
> To: user@gora.apache.org
>
> Hi Nick,
> As you've maybe noticed, getField(record, name, pos) is inherited from
Avro's SpecificDatumReader [0].
>
> If there is an error compiling, I can only imagine it is because Avro is
not available at compile time?
>
> [0]
http://svn.apache.org/viewvc/avro/tags/release-1.3.3/lang/java/src/java/org/apache/avro/specific/SpecificDatumReader.java?view=markup
>
>
> On Tue, Jun 18, 2013 at 10:28 AM, buzz heavyyear <
buzzheavyyear@hotmail.com> wrote:
>
> Hi,
> I'm busy reading through your excellent code, compiling various snippets
to understand how things work and I'm having problems in trying to compile
PersistentDatumReader - it's unable to find getField(record, name, pos) and
setField(record, name, pos, ....) in Object readRecord(Object old, Schema
expected, ResolvingDecoder in);
> I have a feeling that I've missed an installation step somewhere. Could
anyone give me a pointer on what I should have done to get this to compile.
> Thanks,
> Nick.
>
>
> --
> Lewis
>

-- 
*Lewis*

RE: getField, setField in org.apache.gora.avro.PersistentDatumReader

Posted by buzz heavyyear <bu...@hotmail.com>.
Hi Guys,
Sincere apologies over this, I have egg on my face as I didn't dig deep enough.
I'm trying to merge the latest avro branch with gora with a view to pruning anything which is redundant and then converting to C++ for use in an embedded device. It's a hard and rocky road. Thanks for pointing out SpecificDatumReader. In, I think, Avro 1.6.0, getFields, setFields have been moved to GenericData; so prepending getFields/setFields with getData() works - just needs to be tested.
Thanks again for the time you spent dealing with this.
CheersNick

Date: Tue, 18 Jun 2013 13:48:10 -0700
Subject: Re: getField, setField in org.apache.gora.avro.PersistentDatumReader
From: lewis.mcgibbney@gmail.com
To: user@gora.apache.org

Hi Nick,
As you've maybe noticed, getField(record, name, pos) is inherited from Avro's SpecificDatumReader [0].

If there is an error compiling, I can only imagine it is because Avro is not available at compile time?


[0] http://svn.apache.org/viewvc/avro/tags/release-1.3.3/lang/java/src/java/org/apache/avro/specific/SpecificDatumReader.java?view=markup



On Tue, Jun 18, 2013 at 10:28 AM, buzz heavyyear <bu...@hotmail.com> wrote:




Hi,
I'm busy reading through your excellent code, compiling various snippets to understand how things work and I'm having problems in trying to compile PersistentDatumReader - it's unable to find getField(record, name, pos) and setField(record, name, pos, ....) in Object readRecord(Object old, Schema expected, ResolvingDecoder in);

I have a feeling that I've missed an installation step somewhere. Could anyone give me a pointer on what I should have done to get this to compile.
Thanks,Nick.
 		 	   		  


-- 
Lewis 


 		 	   		  

Re: getField, setField in org.apache.gora.avro.PersistentDatumReader

Posted by Lewis John Mcgibbney <le...@gmail.com>.
Hi Nick,
As you've maybe noticed, getField(record, name, pos) is inherited from
Avro's SpecificDatumReader [0].

If there is an error compiling, I can only imagine it is because Avro is
not available at compile time?

[0]
http://svn.apache.org/viewvc/avro/tags/release-1.3.3/lang/java/src/java/org/apache/avro/specific/SpecificDatumReader.java?view=markup


On Tue, Jun 18, 2013 at 10:28 AM, buzz heavyyear
<bu...@hotmail.com>wrote:

> Hi,
>
> I'm busy reading through your excellent code, compiling various snippets
> to understand how things work and I'm having problems in trying to compile
> PersistentDatumReader - it's unable to find getField(record, name, pos) and
> setField(record, name, pos, ....) in Object readRecord(Object old, Schema
> expected, ResolvingDecoder in);
>
> I have a feeling that I've missed an installation step somewhere. Could
> anyone give me a pointer on what I should have done to get this to compile.
>
> Thanks,
> Nick.
>



-- 
*Lewis*

Re: getField, setField in org.apache.gora.avro.PersistentDatumReader

Posted by Henry Saputra <he...@gmail.com>.
Thanks for the info Nick. The release src should work too =(

I will try the release distribution later to verify.


Thanks,

Henry



On Tue, Jun 18, 2013 at 11:52 AM, buzz heavyyear
<bu...@hotmail.com>wrote:

> Hi, no, I pulled pieces out of the latest src release, and checked that
> the code was the same in the trunk. I'll compile using maven tomorrow when
> I get in to work.
> Thanks for getting back.
> Nick.
>
> ------------------------------
> From: buzzheavyyear@hotmail.com
> To: user@gora.apache.org
> Subject: getField, setField in org.apache.gora.avro.PersistentDatumReader
> Date: Tue, 18 Jun 2013 17:28:59 +0000
>
>
> Hi,
>
> I'm busy reading through your excellent code, compiling various snippets
> to understand how things work and I'm having problems in trying to compile
> PersistentDatumReader - it's unable to find getField(record, name, pos) and
> setField(record, name, pos, ....) in Object readRecord(Object old, Schema
> expected, ResolvingDecoder in);
>
> I have a feeling that I've missed an installation step somewhere. Could
> anyone give me a pointer on what I should have done to get this to compile.
>
> Thanks,
> Nick.
>

RE: getField, setField in org.apache.gora.avro.PersistentDatumReader

Posted by buzz heavyyear <bu...@hotmail.com>.
Hi, no, I pulled pieces out of the latest src release, and checked that the code was the same in the trunk. I'll compile using maven tomorrow when I get in to work.
Thanks for getting back.
Nick.

From: buzzheavyyear@hotmail.com
To: user@gora.apache.org
Subject: getField, setField in org.apache.gora.avro.PersistentDatumReader
Date: Tue, 18 Jun 2013 17:28:59 +0000




Hi,
I'm busy reading through your excellent code, compiling various snippets to understand how things work and I'm having problems in trying to compile PersistentDatumReader - it's unable to find getField(record, name, pos) and setField(record, name, pos, ....) in Object readRecord(Object old, Schema expected, ResolvingDecoder in);
I have a feeling that I've missed an installation step somewhere. Could anyone give me a pointer on what I should have done to get this to compile.
Thanks,Nick. 		 	   		  
 		 	   		  

Re: getField, setField in org.apache.gora.avro.PersistentDatumReader

Posted by Henry Saputra <he...@gmail.com>.
Hi,

Just curious were you using Maven to compile the source? And also did you
try to do it against trunk.

Thanks for your patience

- Henry


On Tue, Jun 18, 2013 at 10:28 AM, buzz heavyyear
<bu...@hotmail.com>wrote:

> Hi,
>
> I'm busy reading through your excellent code, compiling various snippets
> to understand how things work and I'm having problems in trying to compile
> PersistentDatumReader - it's unable to find getField(record, name, pos) and
> setField(record, name, pos, ....) in Object readRecord(Object old, Schema
> expected, ResolvingDecoder in);
>
> I have a feeling that I've missed an installation step somewhere. Could
> anyone give me a pointer on what I should have done to get this to compile.
>
> Thanks,
> Nick.
>