ListPredicates returns a list of predicates.
()
| 530 | |
| 531 | // ListPredicates returns a list of predicates. |
| 532 | func (s IndexedInMemoryStore) ListPredicates() []ast.PredicateSym { |
| 533 | var r []ast.PredicateSym |
| 534 | for p := range s.constants { |
| 535 | r = append(r, p) |
| 536 | } |
| 537 | for p := range s.shardsByPredicate { |
| 538 | r = append(r, p) |
| 539 | } |
| 540 | return r |
| 541 | } |
| 542 | |
| 543 | // MultiIndexedInMemoryStore provides a simple implementation backed by a four-level map. |
| 544 | // For each predicate sym, we have a separate map, using the index and the hash of the nth argument |
no outgoing calls