| 273 | : options_(std::move(options)), lexer_(options_) {} |
| 274 | |
| 275 | Status FindFirst(std::string_view partial, std::string_view block, |
| 276 | int64_t* out_pos) override { |
| 277 | lexer_.Reset(); |
| 278 | if (lexer_.ShouldUseBulkFilter(block.data(), block.data() + block.size())) { |
| 279 | return FindFirstInternal<true>(partial, block, out_pos); |
| 280 | } else { |
| 281 | return FindFirstInternal<false>(partial, block, out_pos); |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | template <bool UseBulkFilter> |
| 286 | Status FindFirstInternal(std::string_view partial, std::string_view block, |
nothing calls this directly
no test coverage detected