MCPcopy
hub / github.com/google/mangle / ReadOnlyTemporalFactStore

Interface ReadOnlyTemporalFactStore

factstore/temporal.go:42–60  ·  view source on GitHub ↗

ReadOnlyTemporalFactStore provides read access to temporal facts.

Source from the content-addressed store, hash-verified

40
41// ReadOnlyTemporalFactStore provides read access to temporal facts.
42type 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.
63type TemporalFactStore interface {

Callers 22

GetFactsMethod · 0.65
GetFactsAtMethod · 0.65
GetFactsDuringMethod · 0.65
evalDiamondMinusMethod · 0.65
evalDiamondPlusMethod · 0.65
QueryMethod · 0.65
MergeMethod · 0.65
ContainsMethod · 0.65
GetFactsMethod · 0.65
GetAllFactsMethod · 0.65

Implementers 2

TemporalStorefactstore/temporal.go
TeeingTemporalStorefactstore/temporal.go

Calls

no outgoing calls

Tested by

no test coverage detected