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

Method AddOneRow

be/src/service/query-result-set.cc:275–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275Status AsciiQueryResultSet::AddOneRow(const TResultRow& row) {
276 int num_col = row.colVals.size();
277 DCHECK_EQ(num_col, metadata_.columns.size());
278 stringstream out_stream;
279 out_stream.precision(ASCII_PRECISION);
280 for (int i = 0; i < num_col; ++i) {
281 // ODBC-187 - ODBC can only take "\t" as the delimiter
282 if (i > 0) out_stream << '\t';
283 PrintTColumnValue(out_stream, row.colVals[i]);
284 }
285 result_set_->push_back(out_stream.str());
286 return Status::OK();
287}
288
289int AsciiQueryResultSet::AddRows(
290 const QueryResultSet* other, int start_idx, int num_rows) {

Callers 1

FetchRowsInternalMethod · 0.80

Calls 6

PrintTColumnValueFunction · 0.85
OKFunction · 0.85
push_backMethod · 0.80
resizeMethod · 0.80
sizeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected