hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: How efficient add row with columns to table?
Date Tue, 19 Sep 2017 16:54:55 GMT
Looks Okay to me.

On Tue, Sep 19, 2017 at 9:53 AM, Andrzej <borucki_andrzej@wp.pl> wrote:

> W dniu 18.09.2017 o 20:25, Ted Yu pisze:
>
>> There is no such logic on C++ client side.
>> When server receives the request, the columns would be added.
>>
>
> void hbPutColumns(uint32_t hTable, string row, vector<string>& families,
> vector<string>& qualifiers, vector<string>& values)
> {
>         auto put = std::make_unique<Put>(row);
>         assert(families.size() == qualifiers.size() && qualifiers.size()
> == values.size());
>         for (int i=0; i<qualifiers.size(); i++)
>                 put->AddColumn(families[i], qualifiers[i], values[i]);
>         getTable(hTable)->Put(*std::move(put));
> }
>
> Above method efficient adds columns to table?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message