NewMultiIndexedArrayInMemoryStore constructs a new MultiIndexedArrayInMemoryStore.
()
| 735 | |
| 736 | // NewMultiIndexedArrayInMemoryStore constructs a new MultiIndexedArrayInMemoryStore. |
| 737 | func NewMultiIndexedArrayInMemoryStore() *MultiIndexedArrayInMemoryStore { |
| 738 | return &MultiIndexedArrayInMemoryStore{ |
| 739 | InMemoryStore: NewInMemoryStore[map[uint16]map[uint64]map[uint64][]*ast.Atom](), |
| 740 | count: 0, |
| 741 | } |
| 742 | } |
| 743 | |
| 744 | func (s *MultiIndexedArrayInMemoryStore) getFactsOfFirstVariable(a ast.Atom, fn func(ast.Atom) error) error { |
| 745 | for _, shard := range s.shardsByPredicate[a.Predicate][0] { |