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

Method Contains

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

Contains returns true if given atom is already present in store. This is a convenience method that has a straightforward implementation in terms of GetFacts. It does not return error and treats any error condition as "false". Clients who distinguish "absent" from "error" should call GetFacts directl

(ast.Atom)

Source from the content-addressed store, hash-verified

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

Callers 15

DeclsMethod · 0.65
updatedAtomMethod · 0.65
ParseQueryMethod · 0.65
ContainsMethod · 0.65
AddMethod · 0.65
ContainsMethod · 0.65
ContainsMethod · 0.65
TestRoundTripFunction · 0.65
TestStoreFunction · 0.65
TestNewBytesFunction · 0.65
TestGzipFunction · 0.65
TestAddContainsRemoveFunction · 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 13

TestRoundTripFunction · 0.52
TestStoreFunction · 0.52
TestNewBytesFunction · 0.52
TestGzipFunction · 0.52
TestAddContainsRemoveFunction · 0.52
TestTransformErrorsFunction · 0.52
containsFunction · 0.52
TestDesugarCyclicFunction · 0.52
containsFactFunction · 0.52