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

Method execute

src/ExtOperator.actor.cpp:684–694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

682struct ExtUpdateOperatorPullAll {
683 static const char* name;
684 static Future<Void> execute(Reference<IReadWriteContext> cx,
685 StringRef const& path,
686 bson::BSONElement const& element) {
687 std::vector<DataValue> all;
688 std::vector<bson::BSONElement> elems = element.Array();
689 for (auto e : elems) {
690 all.push_back(fullValueFromElement(e));
691 }
692 std::set<DataValue> uniques(all.begin(), all.end());
693 return doPullActor(cx, path, uniques);
694 }
695};
696REGISTER_UPDATE_OPERATOR(ExtUpdateOperatorPullAll, "$pullAll");
697

Callers

nothing calls this directly

Calls 3

fullValueFromElementFunction · 0.85
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected