dictionary_column_view.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 #pragma once
6 
9 
15 namespace CUDF_EXPORT cudf {
30  public:
36  dictionary_column_view(column_view const& dictionary_column);
39  ~dictionary_column_view() override = default;
40 
47 
54 
56  static constexpr size_type indices_column_index = cudf::dictionary_indices_column_index;
58  static constexpr size_type keys_column_index = cudf::dictionary_keys_column_index;
59 
61  using column_view::is_empty;
63  using column_view::null_mask;
64  using column_view::offset;
65  using column_view::size;
66 
72  [[nodiscard]] column_view parent() const noexcept;
73 
79  [[nodiscard]] column_view indices() const noexcept;
80 
87  [[nodiscard]] column_view get_indices_annotated() const noexcept;
88 
94  [[nodiscard]] column_view keys() const noexcept;
95 
101  [[nodiscard]] data_type keys_type() const noexcept;
102 
108  [[nodiscard]] size_type keys_size() const noexcept;
109 }; // end of group
111 
113 namespace dictionary { // defined here for doxygen output
114 }
115 
116 } // namespace CUDF_EXPORT cudf
A non-owning, immutable view of device data as a column of elements, some of which may be null as ind...
Indicator for the logical data type of an element in a column.
Definition: types.hpp:286
A wrapper class for operations on a dictionary column.
dictionary_column_view(dictionary_column_view &&)=default
Move constructor.
dictionary_column_view & operator=(dictionary_column_view const &)=default
Move assignment operator.
dictionary_column_view(dictionary_column_view const &)=default
Copy constructor.
dictionary_column_view(column_view const &dictionary_column)
Construct a new dictionary column view object from a column view.
dictionary_column_view & operator=(dictionary_column_view &&)=default
Copy assignment operator.
column_view parent() const noexcept
Returns the parent column.
Constants for child column indices within compound column types.
column view class definitions
size_type null_count(bitmask_type const *bitmask, size_type start, size_type stop, rmm::cuda_stream_view stream=cudf::get_default_stream())
Given a validity bitmask, counts the number of null elements (unset bits) in the range [start,...
int32_t size_type
Row index type for columns and tables.
Definition: types.hpp:84
cuDF interfaces
Definition: host_udf.hpp:26
bool has_nulls(table_view const &view)
Returns True if the table has nulls in any of its columns.