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

Interface ReadOnlyFactStore

factstore/factstore.go:27–45  ·  view source on GitHub ↗

ReadOnlyFactStore provides read access to a set of facts.

Source from the content-addressed store, hash-verified

25
26// ReadOnlyFactStore provides read access to a set of facts.
27type ReadOnlyFactStore interface {
28 // Returns a stream of facts that match a given atom. It takes a callback
29 // to process results. If the callback returns an error, or it encounters
30 // a malformed atom, scanning stops and that error is returned.
31 GetFacts(ast.Atom, func(ast.Atom) error) error
32
33 // Contains returns true if given atom is already present in store.
34 // This is a convenience method that has a straightforward implementation
35 // in terms of GetFacts. It does not return error and treats any
36 // error condition as "false". Clients who distinguish "absent" from "error"
37 // should call GetFacts directly.
38 Contains(ast.Atom) bool
39
40 // ListPredicates lists predicates available in this store.
41 ListPredicates() []ast.PredicateSym
42
43 // EstimateFactCount returns the estimated number of facts in the store.
44 EstimateFactCount() int
45}
46
47// FactStore provides access to a set of facts.
48type FactStore interface {

Callers 32

QueryMethod · 0.65
GetAllFactsFunction · 0.65
MergeMethod · 0.65
GetFactsMethod · 0.65
GetFactsMethod · 0.65
MergeMethod · 0.65
MergeMethod · 0.65
MergeMethod · 0.65
DeclsMethod · 0.65
updatedAtomMethod · 0.65
ParseQueryMethod · 0.65
ContainsMethod · 0.65

Implementers 9

SimpleInMemoryStorefactstore/factstore.go
MergedStorefactstore/factstore.go
TeeingStorefactstore/factstore.go
IndexedInMemoryStorefactstore/factstore.go
MultiIndexedInMemoryStorefactstore/factstore.go
MultiIndexedArrayInMemoryStorefactstore/factstore.go
ConcurrentFactStorefactstore/factstore.go
SimpleColumnStorefactstore/simplecolumn.go
TemporalFactStoreAdapterfactstore/temporal.go

Calls

no outgoing calls

Tested by

no test coverage detected