column_wrapper
derived class for wrapping columns of lists.
More...
#include <column_wrapper.hpp>
Public Member Functions | |
operator lists_column_view () const | |
Cast to lists_column_view. | |
template<typename Element = T, std::enable_if_t< cudf::is_fixed_width< Element >()> * = nullptr> | |
lists_column_wrapper (std::initializer_list< SourceElementT > elements) | |
Construct a lists column containing a single list of fixed-width type from an initializer list of values. More... | |
template<typename Element = T, typename InputIterator , std::enable_if_t< cudf::is_fixed_width< Element >()> * = nullptr> | |
lists_column_wrapper (InputIterator begin, InputIterator end) | |
Construct a lists column containing a single list of fixed-width type from an iterator range. More... | |
template<typename Element = T, typename ValidityIterator , std::enable_if_t< cudf::is_fixed_width< Element >()> * = nullptr> | |
lists_column_wrapper (std::initializer_list< SourceElementT > elements, ValidityIterator v) | |
Construct a lists column containing a single list of fixed-width type from an initializer list of values and a validity iterator. More... | |
template<typename Element = T, typename InputIterator , typename ValidityIterator , std::enable_if_t< cudf::is_fixed_width< Element >()> * = nullptr> | |
lists_column_wrapper (InputIterator begin, InputIterator end, ValidityIterator v) | |
Construct a lists column containing a single list of fixed-width type from an iterator range and a validity iterator. More... | |
template<typename Element = T, std::enable_if_t< std::is_same_v< Element, cudf::string_view >> * = nullptr> | |
lists_column_wrapper (std::initializer_list< std::string > elements) | |
Construct a lists column containing a single list of strings from an initializer list of values. More... | |
template<typename Element = T, typename ValidityIterator , std::enable_if_t< std::is_same_v< Element, cudf::string_view >> * = nullptr> | |
lists_column_wrapper (std::initializer_list< std::string > elements, ValidityIterator v) | |
Construct a lists column containing a single list of strings from an initializer list of values and a validity iterator. More... | |
lists_column_wrapper (std::initializer_list< lists_column_wrapper< T, SourceElementT >> elements) | |
Construct a lists column of nested lists from an initializer list of values. More... | |
lists_column_wrapper () | |
Construct am empty lists column. More... | |
template<typename ValidityIterator > | |
lists_column_wrapper (std::initializer_list< lists_column_wrapper< T, SourceElementT >> elements, ValidityIterator v) | |
Construct a lists column of nested lists from an initializer list of values and a validity iterator. 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... | |
Static Public Member Functions | |
static lists_column_wrapper< T > | make_one_empty_row_column (bool valid=true) |
Construct a list column containing a single empty, optionally null row. 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 lists.
Important note : due to the way initializer lists work, there is a non-obvious behavioral difference when declaring nested empty lists in different situations. Specifically,
This only effects the initial nesting of the empty list. In summary, the correct way to declare an "Empty List" in the two cases are:
Definition at line 1316 of file column_wrapper.hpp.
|
inline |
Construct a lists column containing a single list of fixed-width type from an initializer list of values.
Example:
elements | The list of elements |
Definition at line 1337 of file column_wrapper.hpp.
|
inline |
Construct a lists column containing a single list of fixed-width type from an iterator range.
Example:
begin | Beginning of the sequence |
end | End of the sequence |
Definition at line 1361 of file column_wrapper.hpp.
|
inline |
Construct a lists column containing a single list of fixed-width type from an initializer list of values and a validity iterator.
Example:
elements | The list of elements |
v | The validity iterator |
Definition at line 1385 of file column_wrapper.hpp.
|
inline |
Construct a lists column containing a single list of fixed-width type from an iterator range and a validity iterator.
Example:
begin | Beginning of the sequence |
end | End of the sequence |
v | The validity iterator |
Definition at line 1413 of file column_wrapper.hpp.
|
inline |
Construct a lists column containing a single list of strings from an initializer list of values.
Example:
elements | The list of elements |
Definition at line 1435 of file column_wrapper.hpp.
|
inline |
Construct a lists column containing a single list of strings from an initializer list of values and a validity iterator.
Example:
elements | The list of elements |
v | The validity iterator |
Definition at line 1459 of file column_wrapper.hpp.
|
inline |
Construct a lists column of nested lists from an initializer list of values.
Example:
Automatically handles nesting Example:
elements | The list of elements |
Definition at line 1487 of file column_wrapper.hpp.
|
inline |
|
inline |
Construct a lists column of nested lists from an initializer list of values and a validity iterator.
Example:
Automatically handles nesting Example:
elements | The list of elements |
v | The validity iterator |
Definition at line 1536 of file column_wrapper.hpp.
|
inlinestatic |
Construct a list column containing a single empty, optionally null row.
valid | Whether or not the empty row is also null |
Definition at line 1555 of file column_wrapper.hpp.