You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Keith Thomas <ke...@gmail.com> on 2009/09/03 01:11:20 UTC

Request for example use of incrementColumnValue() with Put

The application I am building against HBase has a need for simple numeric
keys, the key for the first row inserted into a table should be 1, the
second row 2, etc. 

I am working on HBase 0.20 RC1 using this excellent example as my template,
  
http://people.apache.org/~stack/hbase-0.20.0-candidate-1/docs/api/org/apache/hadoop/hbase/client/package-summary.html#package_description

I think I want to take advantage of incrementColumnValue() but I am unable
to working out how to use this HTable method in conjunction with the use of
Put as described in the article linked above.

I am very much at the stage of conscious incompetence in my use of HBase at
the moment so I apologize if this question seems muddled.

-- 
View this message in context: http://www.nabble.com/Request-for-example-use-of-incrementColumnValue%28%29-with-Put-tp25267107p25267107.html
Sent from the HBase User mailing list archive at Nabble.com.


Re: Request for example use of incrementColumnValue() with Put

Posted by stack <st...@duboce.net>.
My fault I'm sure.  Here's where I was trying to send you:

http://people.apache.org/~stack/hbase-0.20.0-candidate-2/docs/api/org/apache/hadoop/hbase/client/HTable.html#incrementColumnValue%28byte[],%20byte[],%20byte[],%20long,%20boolean%29

St.Ack

On Wed, Sep 2, 2009 at 4:45 PM, Keith Thomas <ke...@gmail.com> wrote:

>
> Thanks you for such a quick reply. I am afraid the link you sent me just
> took
> me to the top of the HTable Javadoc page and so I am not clear which method
> exactly you are referring to. Apologies if I have missed the point
> somewhere.
>
>
> stack-3 wrote:
> >
> > On Wed, Sep 2, 2009 at 4:11 PM, Keith Thomas <ke...@gmail.com>
> > wrote:
> >
> >>
> >>
> > I am working on HBase 0.20 RC1 using this excellent example as my
> > template,
> >>
> >>
> >>
> http://people.apache.org/~stack/hbase-0.20.0-candidate-1/docs/api/org/apache/hadoop/hbase/client/package-summary.html#package_description<http://people.apache.org/%7Estack/hbase-0.20.0-candidate-1/docs/api/org/apache/hadoop/hbase/client/package-summary.html#package_description>
> <
> http://people.apache.org/%7Estack/hbase-0.20.0-candidate-1/docs/api/org/apache/hadoop/hbase/client/package-summary.html#package_description
> >
> >>
> >> I think I want to take advantage of incrementColumnValue() but I am
> >> unable
> >> to working out how to use this HTable method in conjunction with the use
> >> of
> >> Put as described in the article linked above.
> >>
> >
> >
> > Don't you just want to use this method: http://su.pr/1y17au and not Put
> at
> > all?
> >
> > FYI, https://issues.apache.org/jira/browse/HBASE-1740.  Will be fixed in
> > 0.20.1 (0.20.0RC3 is imminent).
> >
> > St.Ack
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Request-for-example-use-of-incrementColumnValue%28%29-with-Put-tp25267107p25267542.html
> Sent from the HBase User mailing list archive at Nabble.com.
>
>

Re: Request for example use of incrementColumnValue() with Put

Posted by Keith Thomas <ke...@gmail.com>.
Thanks you for such a quick reply. I am afraid the link you sent me just took
me to the top of the HTable Javadoc page and so I am not clear which method
exactly you are referring to. Apologies if I have missed the point
somewhere.


stack-3 wrote:
> 
> On Wed, Sep 2, 2009 at 4:11 PM, Keith Thomas <ke...@gmail.com>
> wrote:
> 
>>
>>
> I am working on HBase 0.20 RC1 using this excellent example as my
> template,
>>
>>
>> http://people.apache.org/~stack/hbase-0.20.0-candidate-1/docs/api/org/apache/hadoop/hbase/client/package-summary.html#package_description<http://people.apache.org/%7Estack/hbase-0.20.0-candidate-1/docs/api/org/apache/hadoop/hbase/client/package-summary.html#package_description>
>>
>> I think I want to take advantage of incrementColumnValue() but I am
>> unable
>> to working out how to use this HTable method in conjunction with the use
>> of
>> Put as described in the article linked above.
>>
> 
> 
> Don't you just want to use this method: http://su.pr/1y17au and not Put at
> all?
> 
> FYI, https://issues.apache.org/jira/browse/HBASE-1740.  Will be fixed in
> 0.20.1 (0.20.0RC3 is imminent).
> 
> St.Ack
> 
> 

-- 
View this message in context: http://www.nabble.com/Request-for-example-use-of-incrementColumnValue%28%29-with-Put-tp25267107p25267542.html
Sent from the HBase User mailing list archive at Nabble.com.


Re: Request for example use of incrementColumnValue() with Put

Posted by stack <st...@duboce.net>.
On Wed, Sep 2, 2009 at 4:11 PM, Keith Thomas <ke...@gmail.com> wrote:

>
>
I am working on HBase 0.20 RC1 using this excellent example as my template,
>
>
> http://people.apache.org/~stack/hbase-0.20.0-candidate-1/docs/api/org/apache/hadoop/hbase/client/package-summary.html#package_description<http://people.apache.org/%7Estack/hbase-0.20.0-candidate-1/docs/api/org/apache/hadoop/hbase/client/package-summary.html#package_description>
>
> I think I want to take advantage of incrementColumnValue() but I am unable
> to working out how to use this HTable method in conjunction with the use of
> Put as described in the article linked above.
>


Don't you just want to use this method: http://su.pr/1y17au and not Put at
all?

FYI, https://issues.apache.org/jira/browse/HBASE-1740.  Will be fixed in
0.20.1 (0.20.0RC3 is imminent).

St.Ack