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

Method WriteString

be/src/kudu/util/debug/trace_event_impl.cc:2307–2318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2305}
2306
2307void CategoryFilter::WriteString(const StringList& values,
2308 std::string* out,
2309 bool included) const {
2310 bool prepend_comma = !out->empty();
2311 int token_cnt = 0;
2312 for (const auto& value : values) {
2313 if (token_cnt > 0 || prepend_comma)
2314 StringAppendF(out, ",");
2315 StringAppendF(out, "%s%s", (included ? "" : "-"), value.c_str());
2316 ++token_cnt;
2317 }
2318}
2319
2320void CategoryFilter::WriteString(const StringList& delays,
2321 std::string* out) const {

Callers

nothing calls this directly

Calls 2

StringAppendFFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected