| 1361 | template <typename Type, typename Matcher> |
| 1362 | struct MatchSubstring { |
| 1363 | static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { |
| 1364 | // TODO Cache matcher across invocations (for regex compilation) |
| 1365 | ARROW_ASSIGN_OR_RAISE(auto matcher, Matcher::Make(MatchSubstringState::Get(ctx))); |
| 1366 | return MatchSubstringImpl<Type, Matcher>::Exec(ctx, batch, out, matcher.get()); |
| 1367 | } |
| 1368 | }; |
| 1369 | |
| 1370 | #ifdef ARROW_WITH_RE2 |