strings/extract.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 #pragma once
6 
7 #include <cudf/strings/regex/flags.hpp>
9 #include <cudf/table/table.hpp>
11 
12 namespace CUDF_EXPORT cudf {
13 namespace strings {
14 
15 struct regex_program;
16 
50 std::unique_ptr<table> extract(
51  strings_column_view const& input,
52  regex_program const& prog,
55 
86 std::unique_ptr<column> extract_all_record(
87  strings_column_view const& input,
88  regex_program const& prog,
91 
115 std::unique_ptr<column> extract_single(
116  strings_column_view const& input,
117  regex_program const& prog,
118  size_type group,
121  // end of doxygen group
123 } // namespace strings
124 } // namespace CUDF_EXPORT cudf
Given a column-view of strings type, an instance of this class provides a wrapper on this compound co...
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
rmm::device_async_resource_ref get_current_device_resource_ref()
Get the current device memory resource reference.
detail::cccl_async_resource_ref< cuda::mr::resource_ref< cuda::mr::device_accessible > > device_async_resource_ref
std::unique_ptr< table > 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=cudf::get_current_device_resource_ref())
Returns a table of strings columns where each column corresponds to the matching group specified in t...
std::unique_ptr< column > extract_single(strings_column_view const &input, regex_program const &prog, size_type group, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Returns a strings column where each column corresponds to the specified group in the given regex_prog...
std::unique_ptr< column > 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=cudf::get_current_device_resource_ref())
Returns a lists column of strings where each string column row corresponds to the matching group spec...
int32_t size_type
Row index type for columns and tables.
Definition: types.hpp:84
cuDF interfaces
Definition: host_udf.hpp:26
Class definition for cudf::strings_column_view.
Regex program class.
Class definition for cudf::table.