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

Method toPredicate

src/ExtOperator.actor.cpp:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39struct ExtValueOperatorIn {
40 static const char* name;
41 static Reference<IPredicate> toPredicate(std::string const& unencoded_path, bson::BSONElement const& element) {
42 std::vector<Reference<IPredicate>> terms;
43 for (auto it = element.Obj().begin(); it.more();) {
44 auto el = it.next();
45 terms.push_back(eq_predicate(el, unencoded_path));
46 }
47 return ref(new OrPredicate(terms));
48 }
49};
50REGISTER_VALUE_OPERATOR(ExtValueOperatorIn, "$in");
51

Callers

nothing calls this directly

Calls 3

eq_predicateFunction · 0.85
refFunction · 0.85
beginMethod · 0.80

Tested by

no test coverage detected