11 #include <cudf/utilities/export.hpp>
18 #include <cuda/std/cstddef>
22 namespace CUDF_EXPORT
cudf {
122 [[nodiscard]] cuda::std::size_t
size()
const;
170 std::unique_ptr<impl> _impl;
A non-owning, immutable view of device data as a column of elements, some of which may be null as ind...
A non-owning, mutable view of device data as a column of elements, some of which may be null as indic...
A type-erased wrapper around cuco's roaring bitmap supporting both 32-bit and 64-bit keys.
cuda::std::size_t size_bytes() const
Returns the size of the serialized bitmap storage in bytes.
cuda::std::size_t size() const
Returns the number of keys stored in the bitmap.
roaring_bitmap & operator=(roaring_bitmap &&other) noexcept
Move assignment operator for the roaring bitmap class.
roaring_bitmap_type type() const
Returns the roaring bitmap type.
bool empty() const
Checks whether the bitmap contains no keys.
roaring_bitmap(roaring_bitmap_type type, cudf::host_span< cuda::std::byte const > serialized_bitmap_data)
Constructs a roaring_bitmap from serialized bitmap data (payload)
roaring_bitmap(roaring_bitmap &&other) noexcept
Move constructor for the roaring bitmap class.
std::unique_ptr< cudf::column > contains_async(cudf::column_view const &keys, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) const
Asynchronously queries the bitmap for membership of each key in the input column.
~roaring_bitmap()
Destructor for the roaring bitmap class.
void contains_async(cudf::column_view const &keys, cudf::mutable_column_view const &output, rmm::cuda_stream_view stream) const
Asynchronously queries the bitmap for membership of each key in a column and stores the result in the...
void materialize(rmm::cuda_stream_view stream=cudf::get_default_stream()) const
Materialize the underlying cuco roaring bitmap.
Class definition for cudf::column.
column view class definitions
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
rmm::device_async_resource_ref get_current_device_resource_ref()
Get the current device memory resource reference.
cuda::mr::resource_ref< cuda::mr::device_accessible > device_async_resource_ref
roaring_bitmap_type
Enumerates the supported roaring bitmap key types.
@ BITS_64
64-bit roaring bitmap (keys are uint64)
@ BITS_32
32-bit roaring bitmap (keys are uint32)
C++20 std::span with reduced feature set.
Type declarations for libcudf.