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

Method toPredicate

src/ExtOperator.actor.cpp:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67struct ExtValueOperatorGt {
68 static const char* name;
69 static Reference<IPredicate> toPredicate(std::string const& unencoded_path, bson::BSONElement const& element) {
70 DataValue min(element);
71 return any_predicate(unencoded_path,
72 ref(new RangePredicate(min, false, DataValue::firstOfnextType(min), false)));
73 }
74};
75REGISTER_VALUE_OPERATOR(ExtValueOperatorGt, "$gt");
76

Callers

nothing calls this directly

Calls 2

any_predicateFunction · 0.85
refFunction · 0.85

Tested by

no test coverage detected