Exact matching strategy using an automaton for multimatching many rules at once.
(self, query, deadline=sys.maxsize, **kwargs)
| 675 | return matches |
| 676 | |
| 677 | def get_exact_matches(self, query, deadline=sys.maxsize, **kwargs): |
| 678 | """ |
| 679 | Exact matching strategy using an automaton for multimatching many rules |
| 680 | at once. |
| 681 | """ |
| 682 | wqr = query.whole_query_run() |
| 683 | |
| 684 | matches = match_aho.exact_match( |
| 685 | idx=self, |
| 686 | query_run=wqr, |
| 687 | automaton=self.rules_automaton, |
| 688 | deadline=deadline, |
| 689 | ) |
| 690 | |
| 691 | matches, _discarded = match.refine_matches( |
| 692 | matches=matches, |
| 693 | query=query, |
| 694 | filter_false_positive=False, |
| 695 | merge=False, |
| 696 | ) |
| 697 | return matches |
| 698 | |
| 699 | def get_fragments_matches( |
| 700 | self, |
nothing calls this directly
no test coverage detected