column_wrapper derived class for wrapping dictionary columns.
More...
#include <column_wrapper.hpp>
Public Member Functions | |
| operator dictionary_column_view () const | |
| Cast to dictionary_column_view. | |
| dictionary_column_wrapper () | |
| Default constructor initializes an empty column with dictionary type. | |
| template<typename InputIterator > | |
| dictionary_column_wrapper (InputIterator begin, InputIterator end) | |
Construct a non-nullable dictionary column of the fixed-width elements in the range [begin,end). More... | |
| template<typename InputIterator , typename ValidityIterator > | |
| dictionary_column_wrapper (InputIterator begin, InputIterator end, ValidityIterator v) | |
Construct a nullable dictionary column of the fixed-width elements in the range [begin,end) using the range [v, v + distance(begin,end)) interpreted as booleans to indicate the validity of each element. More... | |
| template<typename ElementFrom > | |
| dictionary_column_wrapper (std::initializer_list< ElementFrom > elements) | |
| Construct a non-nullable dictionary column of fixed-width elements from an initializer list. More... | |
| template<typename ElementFrom > | |
| dictionary_column_wrapper (std::initializer_list< ElementFrom > elements, std::initializer_list< bool > validity) | |
| Construct a nullable dictionary column from a list of fixed-width elements using another list to indicate the validity of each element. More... | |
| template<typename ValidityIterator , typename ElementFrom > | |
| dictionary_column_wrapper (std::initializer_list< ElementFrom > element_list, ValidityIterator v) | |
Construct a nullable dictionary column from a list of fixed-width elements and the range [v, v + element_list.size()) interpreted as booleans to indicate the validity of each element. More... | |
| template<typename InputIterator > | |
| dictionary_column_wrapper (InputIterator begin, InputIterator end, std::initializer_list< bool > const &validity) | |
Construct a nullable dictionary column of the fixed-width elements in the range [begin,end) using a validity initializer list to indicate the validity of each element. 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 dictionary columns.
This class handles fixed-width type keys.
| KeyElementTo | Specify a fixed-width type for the key values of the dictionary |
| SourceElementTo | For converting fixed-width values to the KeyElementTo |
Definition at line 938 of file column_wrapper.hpp.
|
inline |
Construct a non-nullable dictionary column of the fixed-width elements in the range [begin,end).
Example:
std::vector, this "range" constructor should be used with parentheses () and not braces {}. The latter should only be used for the initializer_list constructors.| begin | The beginning of the sequence of elements |
| end | The end of the sequence of elements |
Definition at line 973 of file column_wrapper.hpp.
|
inline |
Construct a nullable dictionary column of the fixed-width elements in the range [begin,end) using the range [v, v + distance(begin,end)) interpreted as booleans to indicate the validity of each element.
If v[i] == true, element i is valid, else it is null.
Example:
std::vector, this "range" constructor should be used with parentheses () and not braces {}. The latter should only be used for the initializer_list constructors.| begin | The beginning of the sequence of elements |
| end | The end of the sequence of elements |
| v | The beginning of the sequence of validity indicators |
Definition at line 1007 of file column_wrapper.hpp.
|
inline |
Construct a non-nullable dictionary column of fixed-width elements from an initializer list.
Example:
| elements | The list of elements |
Definition at line 1030 of file column_wrapper.hpp.
|
inline |
Construct a nullable dictionary column from a list of fixed-width elements using another list to indicate the validity of each element.
The validity of each element is determined by an initializer_list of booleans where true indicates the element is valid, and false indicates the element is null.
Example:
| elements | The list of elements |
| validity | The list of validity indicator booleans |
Definition at line 1054 of file column_wrapper.hpp.
|
inline |
Construct a nullable dictionary column from a list of fixed-width elements and the range [v, v + element_list.size()) interpreted as booleans to indicate the validity of each element.
Example:
| ValidityIterator | Dereferencing a ValidityIterator must be convertible to bool |
| element_list | The list of elements |
| v | The beginning of the sequence of validity indicators |
Definition at line 1079 of file column_wrapper.hpp.
|
inline |
Construct a nullable dictionary column of the fixed-width elements in the range [begin,end) using a validity initializer list to indicate the validity of each element.
The validity of each element is determined by an initializer_list of booleans where true indicates the element is valid, and false indicates the element is null.
Example:
| begin | The beginning of the sequence of elements |
| end | The end of the sequence of elements |
| validity | The list of validity indicator booleans |
Definition at line 1105 of file column_wrapper.hpp.