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

Function eq_predicate

src/ExtUtil.actor.cpp:495–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495Reference<IPredicate> eq_predicate(const bson::BSONElement& el, const std::string& prefix) {
496 DataValue dv;
497
498 if (!el.isABSONObj()) {
499 dv = DataValue(el);
500 } else if (el.type() == bson::BSONType::Array) {
501 dv = DataValue(bson::BSONArray(el.Obj()));
502 } else {
503 dv = DataValue(sortBsonObj(el.Obj()));
504 }
505
506 return any_predicate(prefix, ref(new EqPredicate(dv)));
507}
508
509Reference<IPredicate> re_predicate(const bson::BSONElement& el, const std::string& prefix) {
510 std::string regexPattern;

Callers 6

queryToPredicateFunction · 0.85
toPredicateMethod · 0.85
toPredicateMethod · 0.85
toPredicateMethod · 0.85
toPredicateMethod · 0.85
toPredicateMethod · 0.85

Calls 4

DataValueClass · 0.85
sortBsonObjFunction · 0.85
any_predicateFunction · 0.85
refFunction · 0.85

Tested by

no test coverage detected