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

Method toPredicate

src/ExtOperator.actor.cpp:107–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105struct ExtValueOperatorNe {
106 static const char* name;
107 static Reference<IPredicate> toPredicate(std::string const& unencoded_path, bson::BSONElement const& element) {
108 // We can do this *despite* Mongo array semantics, because those semantics inconsistently treat a
109 // $ne like a $not: {path: element}.
110 return ref(new NotPredicate(eq_predicate(element, unencoded_path)));
111 }
112};
113REGISTER_VALUE_OPERATOR(ExtValueOperatorNe, "$ne");
114

Callers

nothing calls this directly

Calls 2

refFunction · 0.85
eq_predicateFunction · 0.85

Tested by

no test coverage detected