TemporalStore is an in-memory implementation of TemporalFactStore. Facts are indexed by predicate symbol and atom hash, with each atom having an interval tree for O(log n + k) query performance.
| 89 | // Facts are indexed by predicate symbol and atom hash, with each atom |
| 90 | // having an interval tree for O(log n + k) query performance. |
| 91 | type TemporalStore struct { |
| 92 | facts map[ast.PredicateSym]map[uint64]*IntervalTree |
| 93 | atoms map[uint64]ast.Atom |
| 94 | count int |
| 95 | maxIntervalsPerAtom int // negative = no limit, 0 = use default |
| 96 | } |
| 97 | |
| 98 | var _ TemporalFactStore = &TemporalStore{} |
| 99 |
nothing calls this directly
no outgoing calls
no test coverage detected