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

Class ExtBoolOperatorAnd

src/ExtOperator.actor.cpp:215–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213REGISTER_VALUE_OPERATOR(ExtValueOperatorRegEx, "$regex");
214
215struct ExtBoolOperatorAnd {
216 static const char* name;
217 static Reference<IPredicate> toPredicate(bson::BSONObj const& obj) {
218 std::vector<Reference<IPredicate>> terms;
219 for (auto it = obj.begin(); it.more();) {
220 auto el = it.next();
221 terms.push_back(queryToPredicate(el.Obj()));
222 }
223 return ref(new AndPredicate(terms));
224 }
225};
226REGISTER_BOOL_OPERATOR(ExtBoolOperatorAnd, "$and");
227
228struct ExtBoolOperatorOr {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected