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

Method toPredicate

src/ExtOperator.actor.cpp:147–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145struct ExtValueOperatorSize {
146 static const char* name;
147 static Reference<IPredicate> toPredicate(std::string const& unencoded_path, bson::BSONElement const& element) {
148 return ref(new AnyPredicate(ref(new ExtPathExpression(unencoded_path, false, false)),
149 ref(new ArraySizePredicate(element.Number()))));
150 }
151};
152REGISTER_VALUE_OPERATOR(ExtValueOperatorSize, "$size");
153

Callers

nothing calls this directly

Calls 1

refFunction · 0.85

Tested by

no test coverage detected