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