Given a column-view of strings type, an instance of this class provides a wrapper on this compound column for strings operations.
More...
#include <strings_column_view.hpp>
Given a column-view of strings type, an instance of this class provides a wrapper on this compound column for strings operations.
Definition at line 38 of file strings_column_view.hpp.
◆ strings_column_view()
cudf::strings_column_view::strings_column_view |
( |
column_view |
strings_column | ) |
|
Construct a new strings column view object from a column view.s.
- Parameters
-
strings_column | The column view to wrap. |
◆ chars_begin()
Return an iterator for the chars child column.
This does not apply the offset of the parent. The offsets child must be used to properly address the char bytes.
For example, to access the first character of string i
(accounting for a sliced column offset) use: chars_begin(stream)[offsets_begin()[i]]
.
- Returns
- Iterator pointing to the first char byte.
◆ chars_end()
Return an end iterator for the offsets child column.
This does not apply the offset of the parent. The offsets child must be used to properly address the char bytes.
- Parameters
-
stream | CUDA stream used for device memory operations and kernel launches |
- Returns
- Iterator pointing 1 past the last char byte.
◆ chars_size()
Returns the number of bytes in the chars child column.
This accounts for empty columns but does not reflect a sliced parent column view (i.e.: non-zero offset or reduced row count).
- Parameters
-
stream | CUDA stream used for device memory operations and kernel launches |
- Returns
- Number of bytes in the chars child column
◆ offsets()
column_view cudf::strings_column_view::offsets |
( |
| ) |
const |
Returns the internal column of offsets.
- Exceptions
-
- Returns
- The offsets column
◆ operator=() [1/2]
Move assignment operator.
- Returns
- Reference to this instance (after transferring ownership)
◆ operator=() [2/2]
Copy assignment operator.
- Returns
- Reference to this instance
◆ parent()
column_view cudf::strings_column_view::parent |
( |
| ) |
const |
Returns the parent column.
- Returns
- The parents column
The documentation for this class was generated from the following file: