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

Method append

src/QLProjection.actor.cpp:233–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void BOBObj::append(std::string fn, DataValue dv) {
234 if (isArrayLength >= 0) {
235 char* r;
236 long int n = strtol(fn.data(), &r, 10);
237 ASSERT(!*r);
238 bool compact = isArrayLength == 0;
239 while (!compact && currentLoc < n) {
240 bob->appendNull(fn);
241 currentLoc++;
242 }
243 _append(fn, dv);
244 currentLoc++;
245 } else {
246 _append(fn, dv);
247 }
248}
249
250void BOBObj::_append(std::string fn, DataValue dv) {
251 switch (dv.getBSONType()) {

Callers 15

preload_databaseFunction · 0.80
random_arrayFunction · 0.80
random_all_arrayFunction · 0.80
random_index_specFunction · 0.80
random_query_sortFunction · 0.80
expandFunction · 0.80
projectFunction · 0.80
__setitem__Method · 0.80
insertMethod · 0.80
_create_indexMethod · 0.80
append_eachMethod · 0.80

Calls

no outgoing calls