httk.store.mongo.evaluator¶
Exact three-valued evaluation for Mongo stored-property predicates.
The Mongo query path deliberately evaluates this small, frozen AST over
hydrated records. That is important for child records: document storage keeps
their content-addressed SID links, while MongoStore.fetch gives the
evaluator their exact Python values.
Classes¶
A root, child, reference, or filtered record-object scope. |
|
A field, aggregate, null, or literal value in the neutral AST. |
|
A frozen three-valued predicate in the neutral stored-property AST. |
Functions¶
|
Evaluate |
|
Return canonical JSON used as the verifier identity and cursor input. |
Module Contents¶
- class httk.store.mongo.evaluator.MongoScope[source]¶
A root, child, reference, or filtered record-object scope.
- parent: MongoScope | None = None[source]¶
- relationship: httk.store.db.schema.FieldSpec | None = None[source]¶
- filter_predicate: MongoPredicate | None = None[source]¶
- class httk.store.mongo.evaluator.MongoValue[source]¶
A field, aggregate, null, or literal value in the neutral AST.
- scope: MongoScope | None = None[source]¶
- spec: httk.store.db.schema.FieldSpec | None = None[source]¶
- value: MongoValue | None = None[source]¶
- class httk.store.mongo.evaluator.MongoPredicate[source]¶
A frozen three-valued predicate in the neutral stored-property AST.
- httk.store.mongo.evaluator.evaluate(predicate, record)[source]¶
Evaluate
predicateexactly over a hydrated backing object.- Parameters:
predicate (MongoPredicate) – Frozen predicate produced by
_MongoQueryContext.record (object) – Hydrated backing record for the candidate SID.
- Returns:
True,False, orNonefor SQL UNKNOWN.- Return type:
bool | None