MCPcopy
hub / github.com/google/mangle / ListPredicates

Method ListPredicates

factstore/temporal.go:531–544  ·  view source on GitHub ↗

ListPredicates returns the union of predicates from both stores.

()

Source from the content-addressed store, hash-verified

529
530// ListPredicates returns the union of predicates from both stores.
531func (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.
547func (s *TeeingTemporalStore) EstimateFactCount() int {

Callers

nothing calls this directly

Calls 1

ListPredicatesMethod · 0.65

Tested by

no test coverage detected