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

Method toPredicate

src/ExtOperator.actor.cpp:98–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96struct ExtValueOperatorLte {
97 static const char* name;
98 static Reference<IPredicate> toPredicate(std::string const& unencoded_path, bson::BSONElement const& element) {
99 DataValue max(element);
100 return any_predicate(unencoded_path, ref(new RangePredicate(DataValue::firstOfType(max), true, max, true)));
101 }
102};
103REGISTER_VALUE_OPERATOR(ExtValueOperatorLte, "$lte");
104

Callers

nothing calls this directly

Calls 2

any_predicateFunction · 0.85
refFunction · 0.85

Tested by

no test coverage detected