system.query_processing.predicates module¶
WHERE-clause predicates and clause combinators for query processing.
- class system.query_processing.predicates.Clause[source]¶
Bases:
ABCInterface for a WHERE-clause predicate that can be evaluated against a single object (row).
- class system.query_processing.predicates.WHERE_Clause(attribute: str, operator: str, constant)[source]¶
Bases:
ClauseA WHERE clause in SQL is a clause that specifies a filter condition for selecting data. The condition is evaluated to true, false, or unknown.
- evaluate(_object: object) bool[source]¶
See
Clause.evaluate().Reads
self.attributefrom the object and compares it againstself.constantusingself.operator.
- class system.query_processing.predicates.Disjunction(*clauses: Clause)[source]¶
Bases:
ClauseA disjunction is a logical operation that outputs true if at least one of the operands is true.
- evaluate(_object) bool[source]¶
See
Clause.evaluate().Returns
Trueas soon as any of the contained clauses evaluates toTrue(logical OR).