column_wrapper
derived class for wrapping columns of fixed-width elements.
More...
#include <column_wrapper.hpp>
Public Member Functions | |
fixed_width_column_wrapper () | |
Default constructor initializes an empty column with proper dtype. | |
template<typename InputIterator > | |
fixed_width_column_wrapper (InputIterator begin, InputIterator end) | |
Construct a non-nullable column of the fixed-width elements in the range [begin,end) . More... | |
template<typename InputIterator , typename ValidityIterator > | |
fixed_width_column_wrapper (InputIterator begin, InputIterator end, ValidityIterator v) | |
Construct a nullable 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 > | |
fixed_width_column_wrapper (std::initializer_list< ElementFrom > elements) | |
Construct a non-nullable column of fixed-width elements from an initializer list. More... | |
template<typename ElementFrom > | |
fixed_width_column_wrapper (std::initializer_list< ElementFrom > elements, std::initializer_list< bool > validity) | |
Construct a nullable column from a list of fixed-width elements using another list to indicate the validity of each element. More... | |
template<typename ValidityIterator , typename ElementFrom > | |
fixed_width_column_wrapper (std::initializer_list< ElementFrom > element_list, ValidityIterator v) | |
Construct a nullable 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 > | |
fixed_width_column_wrapper (InputIterator begin, InputIterator end, std::initializer_list< bool > const &validity) | |
Construct a nullable column of the fixed-width elements in the range [begin,end) using a validity initializer list to indicate the validity of each element. More... | |
template<typename ElementFrom > | |
fixed_width_column_wrapper (std::initializer_list< std::pair< ElementFrom, bool >> elements) | |
Construct a nullable column from a list of pairs of fixed-width elements and validity booleans 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 columns of fixed-width elements.
ElementTo | The fixed-width element type that is created |
SourceElementT | The fixed-width element type that is used to create elements of type ElementTo |
Definition at line 340 of file column_wrapper.hpp.
|
inline |
Construct a non-nullable column of the fixed-width elements in the range [begin,end)
.
Example:
Note: similar to 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 375 of file column_wrapper.hpp.
|
inline |
Construct a nullable 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:
Note: similar to 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 409 of file column_wrapper.hpp.
|
inline |
Construct a non-nullable column of fixed-width elements from an initializer list.
Example:
elements | The list of elements |
Definition at line 434 of file column_wrapper.hpp.
|
inline |
Construct a nullable 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 457 of file column_wrapper.hpp.
|
inline |
Construct a nullable 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 481 of file column_wrapper.hpp.
|
inline |
Construct a nullable 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 505 of file column_wrapper.hpp.
|
inline |
Construct a nullable column from a list of pairs of fixed-width elements and validity booleans of each element.
The validity of each element is determined by the boolean element in the pair where true
indicates the element is valid, and false
indicates the element is null.
Example:
elements | The list of pairs of element and validity booleans |
Definition at line 530 of file column_wrapper.hpp.