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

Function valueQueryToPredicate

src/ExtMsg.actor.cpp:116–120  ·  view source on GitHub ↗

* Converts a `value_query` in the above grammar, with the given path, to a predicate. */

Source from the content-addressed store, hash-verified

114 * Converts a `value_query` in the above grammar, with the given path, to a predicate.
115 */
116Reference<IPredicate> valueQueryToPredicate(bson::BSONObj const& query, std::string const& path) {
117 std::vector<Reference<IPredicate>> terms;
118 valueQueryToPredicates(query, path, terms);
119 return ref(new AndPredicate(terms));
120}
121
122/**
123 * Converts a mongo-like query document (query in the above grammar) into a corresponding

Callers 2

toPredicateMethod · 0.85
toPredicateMethod · 0.85

Calls 2

valueQueryToPredicatesFunction · 0.85
refFunction · 0.85

Tested by

no test coverage detected