hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrzej <borucki_andr...@wp.pl>
Subject How efficient add row with columns to table?
Date Mon, 18 Sep 2017 17:42:18 GMT
I simple-client.cc is:
for (uint64_t i = 0; i < num_puts; i++)
       table->Put(*MakePut(Row(FLAGS_row, i)));
std::unique_ptr<Put> MakePut(const std::string &row) {
   auto put = std::make_unique<Put>(row);
   put->AddColumn("f", "q", row);
   return std::move(put);

But there are two problems:
1. In above example column "q" is row_key, but if I want add other 
column than row, I don't know on which row will be added.
2.How efficient add many columns?

In general case , how add :
row_key, column1, column2...column 10

View raw message