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

Class AllPredicate

src/QLPredicate.h:126–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124};
125
126struct AllPredicate : IPredicate, ReferenceCounted<AllPredicate>, FastAllocated<AllPredicate> {
127 void addref() override { ReferenceCounted<AllPredicate>::addref(); }
128 void delref() override { ReferenceCounted<AllPredicate>::delref(); }
129
130 TypeCode getTypeCode() const override { return TypeCode::ALL; }
131
132 Future<bool> evaluate(Reference<IReadContext> const& context) override { return true; }
133 std::string toString() override { return "ALL()"; }
134
135 Reference<IPredicate> simplify_not() override;
136 void simplify_and(SimplifyAndContext& combinable) override;
137 bool wantsNulls() override { return false; }
138};
139
140struct NonePredicate : IPredicate, ReferenceCounted<NonePredicate>, FastAllocated<NonePredicate> {
141 void addref() override { ReferenceCounted<NonePredicate>::addref(); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected