ListPredicates returns the union of predicates from both stores.
()
| 529 | |
| 530 | // ListPredicates returns the union of predicates from both stores. |
| 531 | func (s *TeeingTemporalStore) ListPredicates() []ast.PredicateSym { |
| 532 | m := make(map[ast.PredicateSym]bool) |
| 533 | for _, p := range s.base.ListPredicates() { |
| 534 | m[p] = true |
| 535 | } |
| 536 | for _, p := range s.Out.ListPredicates() { |
| 537 | m[p] = true |
| 538 | } |
| 539 | var res []ast.PredicateSym |
| 540 | for p := range m { |
| 541 | res = append(res, p) |
| 542 | } |
| 543 | return res |
| 544 | } |
| 545 | |
| 546 | // EstimateFactCount returns the sum of estimated counts from both stores. |
| 547 | func (s *TeeingTemporalStore) EstimateFactCount() int { |
nothing calls this directly
no test coverage detected