Merge adds all facts from other to this fact store.
(other ReadOnlyFactStore)
| 930 | |
| 931 | // Merge adds all facts from other to this fact store. |
| 932 | func (s *MultiIndexedArrayInMemoryStore) Merge(other ReadOnlyFactStore) { |
| 933 | for _, pred := range other.ListPredicates() { |
| 934 | other.GetFacts(ast.NewQuery(pred), func(fact ast.Atom) error { |
| 935 | s.Add(fact) |
| 936 | return nil |
| 937 | }) |
| 938 | } |
| 939 | } |
| 940 | |
| 941 | // ListPredicates returns a list of predicates. |
| 942 | func (s *MultiIndexedArrayInMemoryStore) ListPredicates() []ast.PredicateSym { |
nothing calls this directly
no test coverage detected