MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / debugString

Method debugString

src/ExtUtil.actor.cpp:288–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288std::string Projection::debugString(bool first) {
289 std::stringstream s;
290 if (first && !included) {
291 s << ".";
292 }
293
294 s << "{";
295 bool addComma = false;
296 for (const auto& itr : fields) {
297 if (addComma)
298 s << ", ";
299 else
300 addComma = true;
301
302 if (!itr.second->included) {
303 s << ".";
304 }
305
306 s << itr.first;
307
308 if (!itr.second->fields.empty()) {
309 s << ": " << itr.second->debugString(false);
310 }
311 }
312
313 s << "}";
314 return s.str();
315}
316
317// Called for each field read from a document in lexicographic order. Returns INCLUDE_ALL if the entire field should be
318// included, INCLUDE_PARTIAL if the field should be partially included (e.g. for an array, the array will be included

Callers 3

describeMethod · 0.80
describeMethod · 0.80
describeMethod · 0.80

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected