You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Vishal Kapoor <vi...@gmail.com> on 2011/01/24 08:37:29 UTC

Get to Put

I have table tableCombined : family 'live', family 'a', family 'b', family
'c'

and also have almost static tables below
tableA with family 'a'
tableB with family 'b'
tableC with family 'c'

what is the best way to take a Get<rowid> of family 'a', from tableA and Put
it to family 'a' of tableCombined while also writing data in family 'live'.
I dont wish to iterate over all the columns of family 'a' on tableA and put
one by one to family 'a' of tableCombined

thanks,
Vishal

Re: Get to Put

Posted by Stack <st...@duboce.net>.
Yeah, they are so close.  In some API redesigns they had same
ancestor.   If you make a patch that adds a Put constructor that takes
a Result, we'll commit it.  Seems like Put should take a row and a
list of KVs minimally.
St.Ack

On Mon, Jan 24, 2011 at 12:04 AM, Vishal Kapoor
<vi...@gmail.com> wrote:
> I think it boils down to how can I make a  Put out of a Result object
> barring the rowid...
>
> thanks,
> Vishal
>
> On Mon, Jan 24, 2011 at 2:37 AM, Vishal Kapoor
> <vi...@gmail.com>wrote:
>
>> I have table tableCombined : family 'live', family 'a', family 'b', family
>> 'c'
>>
>> and also have almost static tables below
>> tableA with family 'a'
>> tableB with family 'b'
>> tableC with family 'c'
>>
>> what is the best way to take a Get<rowid> of family 'a', from tableA and
>> Put it to family 'a' of tableCombined while also writing data in family
>> 'live'.
>> I dont wish to iterate over all the columns of family 'a' on tableA and put
>> one by one to family 'a' of tableCombined
>>
>> thanks,
>> Vishal
>>
>

Re: Get to Put

Posted by Vishal Kapoor <vi...@gmail.com>.
I think it boils down to how can I make a  Put out of a Result object
barring the rowid...

thanks,
Vishal

On Mon, Jan 24, 2011 at 2:37 AM, Vishal Kapoor
<vi...@gmail.com>wrote:

> I have table tableCombined : family 'live', family 'a', family 'b', family
> 'c'
>
> and also have almost static tables below
> tableA with family 'a'
> tableB with family 'b'
> tableC with family 'c'
>
> what is the best way to take a Get<rowid> of family 'a', from tableA and
> Put it to family 'a' of tableCombined while also writing data in family
> 'live'.
> I dont wish to iterate over all the columns of family 'a' on tableA and put
> one by one to family 'a' of tableCombined
>
> thanks,
> Vishal
>