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 Mon, 18 Sep 2017 18:15:30 GMT
You have a column called row_key. It is a bit confusing.

What would be the actual row for row357 ?

Looks like the row is "row357" as std::make_unique<Put>("row357") indicates.

On Mon, Sep 18, 2017 at 11:07 AM, Andrzej <borucki_andrzej@wp.pl> wrote:

> W dniu 18.09.2017 o 19:47, Ted Yu pisze:
>
>> bq. column "q" is row_key,
>>
>> I don't know what you meant.
>> row key should be row, the parameter.
>>
>> If you want to add other columns, just call AddColumn() for those columns.
>>
>
> For example, table has columns: row_key, col1, col2, col3 (family f)
> I want add "row357","col11","col12","col13".
> code
> auto put = std::make_unique<Put>("row357");
> put->AddColumn("f", "col1", "col11");
> put->AddColumn("f", "col2", "col12");
> put->AddColumn("f", "col3", "col13");
> table->Put(std::move(put));
>
> I must additionally add :
> put->AddColumn("f", "row_key", "row357")
> or it is added in "std::make_unique<Put>("row357")"?
>

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