NewIndexedInMemoryStore constructs a new IndexedInMemoryStore.
()
| 392 | |
| 393 | // NewIndexedInMemoryStore constructs a new IndexedInMemoryStore. |
| 394 | func NewIndexedInMemoryStore() IndexedInMemoryStore { |
| 395 | return IndexedInMemoryStore{ |
| 396 | NewInMemoryStore[map[uint64]map[uint64]ast.Atom](), |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | func (s IndexedInMemoryStore) getFactsOfFirstVariable(a ast.Atom, fn func(ast.Atom) error) error { |
| 401 | for _, shard := range s.shardsByPredicate[a.Predicate] { |