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

Method toPredicate

src/ExtOperator.actor.cpp:138–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136struct ExtValueOperatorNot {
137 static const char* name;
138 static Reference<IPredicate> toPredicate(std::string const& unencoded_path, bson::BSONElement const& element) {
139 return ref(
140 new NotPredicate(queryToPredicate(bson::BSONObjBuilder().appendAs(element, unencoded_path.c_str()).obj())));
141 }
142};
143REGISTER_VALUE_OPERATOR(ExtValueOperatorNot, "$not");
144

Callers

nothing calls this directly

Calls 2

refFunction · 0.85
queryToPredicateFunction · 0.85

Tested by

no test coverage detected