A wrapper for a column of fixed-width elements. More...
#include <column_wrapper.hpp>
Public Member Functions | |
template<typename FixedPointRepIterator > | |
fixed_point_column_wrapper (FixedPointRepIterator begin, FixedPointRepIterator end, numeric::scale_type scale) | |
Construct a non-nullable column of the decimal elements in the range [begin,end) . More... | |
fixed_point_column_wrapper (std::initializer_list< Rep > values, numeric::scale_type scale) | |
Construct a non-nullable column of decimal elements from an initializer list. More... | |
template<typename FixedPointRepIterator , typename ValidityIterator > | |
fixed_point_column_wrapper (FixedPointRepIterator begin, FixedPointRepIterator end, ValidityIterator v, numeric::scale_type scale) | |
Construct a nullable column of the fixed-point elements from a range. More... | |
fixed_point_column_wrapper (std::initializer_list< Rep > elements, std::initializer_list< bool > validity, numeric::scale_type scale) | |
Construct a nullable column from an initializer list of decimal elements using another list to indicate the validity of each element. More... | |
template<typename ValidityIterator > | |
fixed_point_column_wrapper (std::initializer_list< Rep > element_list, ValidityIterator v, numeric::scale_type scale) | |
Construct a nullable column from an initializer list of decimal elements and the range [v, v + element_list.size()) interpreted as booleans to indicate the validity of each element. More... | |
template<typename FixedPointRepIterator > | |
fixed_point_column_wrapper (FixedPointRepIterator begin, FixedPointRepIterator end, std::initializer_list< bool > const &validity, numeric::scale_type scale) | |
Construct a nullable column of the decimal 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. | |
A wrapper for a column of fixed-width elements.
Rep | The type of the column |
Definition at line 547 of file column_wrapper.hpp.
|
inline |
Construct a non-nullable column of the decimal elements in the range [begin,end)
.
Example:
FixedPointRepIterator | Iterator for fixed_point::rep |
begin | The beginning of the sequence of elements |
end | The end of the sequence of elements |
scale | The scale of the elements in the column |
Definition at line 566 of file column_wrapper.hpp.
|
inline |
Construct a non-nullable column of decimal elements from an initializer list.
Example:
values | The initializer list of already shifted values |
scale | The scale of the elements in the column |
Definition at line 598 of file column_wrapper.hpp.
|
inline |
Construct a nullable column of the fixed-point elements from a range.
Constructs a nullable column of the fixed-point 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 |
scale | The scale of the elements in the column |
Definition at line 631 of file column_wrapper.hpp.
|
inline |
Construct a nullable column from an initializer list of decimal 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 initializer list of elements |
validity | The initializer list of validity indicator booleans |
scale | The scale of the elements in the column |
Definition at line 669 of file column_wrapper.hpp.
|
inline |
Construct a nullable column from an initializer list of decimal 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 initializer list of elements |
v | The beginning of the sequence of validity indicators |
scale | The scale of the elements in the column |
Definition at line 696 of file column_wrapper.hpp.
|
inline |
Construct a nullable column of the decimal 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:
FixedPointRepIterator | Iterator for fixed_point::rep |
begin | The beginning of the sequence of elements |
end | The end of the sequence of elements |
validity | The initializer list of validity indicator booleans |
scale | The scale of the elements in the column |
Definition at line 724 of file column_wrapper.hpp.