MCPcopy Create free account
hub / github.com/apache/arrow / FindSubstring

Class FindSubstring

cpp/src/arrow/compute/kernels/scalar_string_ascii.cc:1700–1709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1698// Substring find - lfind/index/etc.
1699
1700struct FindSubstring {
1701 const PlainSubstringMatcher matcher_;
1702
1703 explicit FindSubstring(PlainSubstringMatcher matcher) : matcher_(std::move(matcher)) {}
1704
1705 template <typename OutValue, typename... Ignored>
1706 OutValue Call(KernelContext*, std::string_view val, Status*) const {
1707 return static_cast<OutValue>(matcher_.Find(val));
1708 }
1709};
1710
1711#ifdef ARROW_WITH_RE2
1712struct FindSubstringRegex {

Callers 1

ExecMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected