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

Class ExtBoolOperatorOr

src/ExtOperator.actor.cpp:228–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226REGISTER_BOOL_OPERATOR(ExtBoolOperatorAnd, "$and");
227
228struct ExtBoolOperatorOr {
229 static const char* name;
230 static Reference<IPredicate> toPredicate(bson::BSONObj const& obj) {
231 std::vector<Reference<IPredicate>> terms;
232 for (auto it = obj.begin(); it.more();) {
233 auto el = it.next();
234 terms.push_back(queryToPredicate(el.Obj()));
235 }
236 return ref(new OrPredicate(terms));
237 }
238};
239REGISTER_BOOL_OPERATOR(ExtBoolOperatorOr, "$or");
240
241struct ExtBoolOperatorNor {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected