MCPcopy Create free account
hub / github.com/apache/impala / AddRow

Method AddRow

be/src/util/table-printer.cc:45–51  ·  view source on GitHub ↗

Add a row to the table. This must have the same width as labels.

Source from the content-addressed store, hash-verified

43
44// Add a row to the table. This must have the same width as labels.
45void TablePrinter::AddRow(const vector<string>& row) {
46 DCHECK_EQ(row.size(), labels_.size());
47 rows_.push_back(row);
48 for (int i = 0; i < row.size(); ++i) {
49 if (row[i].size() > max_col_widths_[i]) max_col_widths_[i] = row[i].size();
50 }
51}
52
53void TablePrinter::PrintRow(stringstream* s, const vector<string>& row,
54 const vector<int>& widths) const {

Callers 2

FillBatchMethod · 0.45
PrintExecSummaryMethod · 0.45

Calls 2

push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected