hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrzej <borucki_andr...@wp.pl>
Subject Re: How efficient add row with columns to table?
Date Mon, 18 Sep 2017 18:07:53 GMT
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".
auto put = std::make_unique<Put>("row357");
put->AddColumn("f", "col1", "col11");
put->AddColumn("f", "col2", "col12");
put->AddColumn("f", "col3", "col13");

I must additionally add :
put->AddColumn("f", "row_key", "row357")
or it is added in "std::make_unique<Put>("row357")"?

View raw message