MCPcopy Create free account
hub / github.com/baidu/tera / ShowBigTable

Function ShowBigTable

src/sample/tera_sample.cc:182–200  ·  view source on GitHub ↗

三维表格

Source from the content-addressed store, hash-verified

180
181/// 三维表格
182int ShowBigTable(tera::Client* client) {
183 tera::ErrorCode error_code;
184 // Create
185 CreateTable(client);
186 // Open
187 tera::Table* table = client->OpenTable("webdb", &error_code);
188 if (table == NULL) {
189 printf("Open table fail: %s\n", tera::strerr(error_code));
190 return 1;
191 }
192 // Write
193 ModifyTable(table);
194 // Scan
195 // ScanTable(table);
196 // Read
197 ReadRowFromTable(table);
198 delete table;
199 return 0;
200}
201
202/// 二维表格
203int ShowSampleTable(tera::Client* client) {

Callers 1

mainFunction · 0.85

Calls 5

CreateTableFunction · 0.85
strerrFunction · 0.85
ModifyTableFunction · 0.85
ReadRowFromTableFunction · 0.85
OpenTableMethod · 0.45

Tested by

no test coverage detected