Contains implements a ReadOnlyFactStore method.
(fact ast.Atom)
| 94 | |
| 95 | // Contains implements a ReadOnlyFactStore method. |
| 96 | func (s *SimpleColumnStore) Contains(fact ast.Atom) bool { |
| 97 | var found bool |
| 98 | s.GetFacts(fact, func(a ast.Atom) error { |
| 99 | found = true |
| 100 | return nil |
| 101 | }) |
| 102 | return found |
| 103 | } |
| 104 | |
| 105 | // EstimateFactCount implements a ReadOnlyFactStore method. |
| 106 | func (s *SimpleColumnStore) EstimateFactCount() int { |