MCPcopy Index your code
hub / github.com/google/mangle / TemporalStore

Struct TemporalStore

factstore/temporal.go:91–96  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
91type 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
98var _ TemporalFactStore = &TemporalStore{}
99

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected