Merge adds all facts from other to this fact store.
(other ReadOnlyFactStore)
| 703 | |
| 704 | // Merge adds all facts from other to this fact store. |
| 705 | func (s MultiIndexedInMemoryStore) Merge(other ReadOnlyFactStore) { |
| 706 | for _, pred := range other.ListPredicates() { |
| 707 | other.GetFacts(ast.NewQuery(pred), func(fact ast.Atom) error { |
| 708 | s.Add(fact) |
| 709 | return nil |
| 710 | }) |
| 711 | } |
| 712 | } |
| 713 | |
| 714 | // ListPredicates returns a list of predicates. |
| 715 | func (s MultiIndexedInMemoryStore) ListPredicates() []ast.PredicateSym { |
nothing calls this directly
no test coverage detected