ReadOnlyTemporalFactStore provides read access to temporal facts.
| 40 | |
| 41 | // ReadOnlyTemporalFactStore provides read access to temporal facts. |
| 42 | type ReadOnlyTemporalFactStore interface { |
| 43 | // GetFactsAt returns facts valid at a specific point in time. |
| 44 | GetFactsAt(query ast.Atom, t time.Time, fn func(TemporalFact) error) error |
| 45 | |
| 46 | // GetFactsDuring returns facts that overlap with the given interval. |
| 47 | GetFactsDuring(query ast.Atom, interval ast.Interval, fn func(TemporalFact) error) error |
| 48 | |
| 49 | // GetAllFacts returns all facts (with their intervals) matching the query. |
| 50 | GetAllFacts(query ast.Atom, fn func(TemporalFact) error) error |
| 51 | |
| 52 | // ContainsAt returns true if the atom is valid at the given time. |
| 53 | ContainsAt(atom ast.Atom, t time.Time) bool |
| 54 | |
| 55 | // ListPredicates lists predicates available in this store. |
| 56 | ListPredicates() []ast.PredicateSym |
| 57 | |
| 58 | // EstimateFactCount returns the estimated number of temporal facts. |
| 59 | EstimateFactCount() int |
| 60 | } |
| 61 | |
| 62 | // TemporalFactStore provides access to temporal facts. |
| 63 | type TemporalFactStore interface { |
no outgoing calls
no test coverage detected