column_wrapper
derived class for wrapping columns of strings.
More...
#include <column_wrapper.hpp>
Public Member Functions | |
strings_column_wrapper () | |
Default constructor initializes an empty column of strings. | |
template<typename StringsIterator > | |
strings_column_wrapper (StringsIterator begin, StringsIterator end) | |
Construct a non-nullable column of strings from the range [begin,end) . More... | |
template<typename StringsIterator , typename ValidityIterator > | |
strings_column_wrapper (StringsIterator begin, StringsIterator end, ValidityIterator v) | |
Construct a nullable column of strings from the range [begin,end) using the range [v, v + distance(begin,end)) interpreted as booleans to indicate the validity of each string. More... | |
strings_column_wrapper (std::initializer_list< std::string > strings) | |
Construct a non-nullable column of strings from a list of strings. More... | |
template<typename ValidityIterator > | |
strings_column_wrapper (std::initializer_list< std::string > strings, ValidityIterator v) | |
Construct a nullable column of strings from a list of strings and the range [v, v + strings.size()) interpreted as booleans to indicate the validity of each string. More... | |
strings_column_wrapper (std::initializer_list< std::string > strings, std::initializer_list< bool > validity) | |
Construct a nullable column of strings from a list of strings and a list of booleans to indicate the validity of each string. More... | |
strings_column_wrapper (std::initializer_list< std::pair< std::string, bool >> strings) | |
Construct a nullable column from a list of pairs of strings and validity booleans of each string. More... | |
Public Member Functions inherited from cudf::test::detail::column_wrapper | |
operator column_view () const | |
Implicit conversion operator to column_view . More... | |
operator mutable_column_view () | |
Implicit conversion operator to mutable_column_view . More... | |
std::unique_ptr< cudf::column > | release () |
Releases internal unique_ptr to wrapped column. More... | |
Additional Inherited Members | |
Protected Attributes inherited from cudf::test::detail::column_wrapper | |
std::unique_ptr< cudf::column > | wrapped {} |
The wrapped column. | |
column_wrapper
derived class for wrapping columns of strings.
Definition at line 736 of file column_wrapper.hpp.
|
inline |
Construct a non-nullable column of strings from the range [begin,end)
.
Values in the sequence [begin,end)
will each be converted to std::string
and a column will be created containing all of the strings.
Example:
StringsIterator | A std::string must be constructible from dereferencing a StringsIterator . |
begin | The beginning of the sequence |
end | The end of the sequence |
Definition at line 764 of file column_wrapper.hpp.
|
inline |
Construct a nullable column of strings from the range [begin,end)
using the range [v, v + distance(begin,end))
interpreted as booleans to indicate the validity of each string.
Values in the sequence [begin,end)
will each be converted to std::string
and a column will be created containing all of the strings.
If v[i] == true
, string i
is valid, else it is null. If a string *(begin+i)
is null, it's value is ignored and treated as an empty string.
Example:
StringsIterator | A std::string must be constructible from dereferencing a StringsIterator . |
ValidityIterator | Dereferencing a ValidityIterator must be convertible to bool |
begin | The beginning of the sequence |
end | The end of the sequence |
v | The beginning of the sequence of validity indicators |
Definition at line 813 of file column_wrapper.hpp.
|
inline |
Construct a non-nullable column of strings from a list of strings.
Example:
strings | The list of strings |
Definition at line 848 of file column_wrapper.hpp.
|
inline |
Construct a nullable column of strings from a list of strings and the range [v, v + strings.size())
interpreted as booleans to indicate the validity of each string.
Example:
ValidityIterator | Dereferencing a ValidityIterator must be convertible to bool |
strings | The list of strings |
v | The beginning of the sequence of validity indicators |
Definition at line 872 of file column_wrapper.hpp.
|
inline |
Construct a nullable column of strings from a list of strings and a list of booleans to indicate the validity of each string.
Example:
strings | The list of strings |
validity | The list of validity indicator booleans |
Definition at line 892 of file column_wrapper.hpp.
|
inline |
Construct a nullable column from a list of pairs of strings and validity booleans of each string.
The validity of each string is determined by the boolean element in the pair where true
indicates the string is valid, and false
indicates the string is null.
Example:
strings | The list of pairs of strings and validity booleans |
Definition at line 918 of file column_wrapper.hpp.