MCPcopy Index your code
hub / github.com/google/mangle / ListPredicates

Method ListPredicates

factstore/factstore.go:532–541  ·  view source on GitHub ↗

ListPredicates returns a list of predicates.

()

Source from the content-addressed store, hash-verified

530
531// ListPredicates returns a list of predicates.
532func (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

Callers 1

BenchmarkJoinFunction · 0.95

Calls

no outgoing calls

Tested by 1

BenchmarkJoinFunction · 0.76