Files | |
file | strings/extract.hpp |
Functions | |
std::unique_ptr< table > | cudf::strings::extract (strings_column_view const &input, regex_program const &prog, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=rmm::mr::get_current_device_resource()) |
Returns a table of strings columns where each column corresponds to the matching group specified in the given regex_program object. More... | |
std::unique_ptr< column > | cudf::strings::extract_all_record (strings_column_view const &input, regex_program const &prog, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=rmm::mr::get_current_device_resource()) |
Returns a lists column of strings where each string column row corresponds to the matching group specified in the given regex_program object. More... | |
std::unique_ptr<table> cudf::strings::extract | ( | strings_column_view const & | input, |
regex_program const & | prog, | ||
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::device_async_resource_ref | mr = rmm::mr::get_current_device_resource() |
||
) |
Returns a table of strings columns where each column corresponds to the matching group specified in the given regex_program object.
All the strings for the first group will go in the first output column; the second group go in the second column and so on. Null entries are added to the columns in row i
if the string at row i
does not match.
Any null string entries return corresponding null output column entries.
See the Regex Features page for details on patterns supported by this API.
input | Strings instance for this operation |
prog | Regex program instance |
stream | CUDA stream used for device memory operations and kernel launches |
mr | Device memory resource used to allocate the returned table's device memory |
std::unique_ptr<column> cudf::strings::extract_all_record | ( | strings_column_view const & | input, |
regex_program const & | prog, | ||
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::device_async_resource_ref | mr = rmm::mr::get_current_device_resource() |
||
) |
Returns a lists column of strings where each string column row corresponds to the matching group specified in the given regex_program object.
All the matching groups for the first row will go in the first row output column; the second row results will go into the second row output column and so on.
A null output row will result if the corresponding input string row does not match or that input row is null.
See the Regex Features page for details on patterns supported by this API.
input | Strings instance for this operation |
prog | Regex program instance |
stream | CUDA stream used for device memory operations and kernel launches |
mr | Device memory resource used to allocate any returned device memory |