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

Function NewMultiIndexedInMemoryStore

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

NewMultiIndexedInMemoryStore constructs a new MultiIndexedInMemoryStore.

()

Source from the content-addressed store, hash-verified

549
550// NewMultiIndexedInMemoryStore constructs a new MultiIndexedInMemoryStore.
551func NewMultiIndexedInMemoryStore() MultiIndexedInMemoryStore {
552 return MultiIndexedInMemoryStore{
553 NewInMemoryStore[map[uint16]map[uint64]map[uint64]*ast.Atom](),
554 }
555}
556
557func (s MultiIndexedInMemoryStore) getFactsOfFirstVariable(a ast.Atom, fn func(ast.Atom) error) error {
558 for _, shard := range s.shardsByPredicate[a.Predicate][0] {

Callers 2

factstore.goFile · 0.85
TestAddContainsRemoveFunction · 0.85

Calls 1

NewInMemoryStoreFunction · 0.85

Tested by 1

TestAddContainsRemoveFunction · 0.68