structs_column_view.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2022-2024, NVIDIA CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #pragma once
17 
18 #include <cudf/column/column.hpp>
21 
22 #include <rmm/cuda_stream_view.hpp>
23 
29 namespace CUDF_EXPORT cudf {
30 
41  public:
42  // Foundation members:
45  ~structs_column_view() = default;
58 
64  explicit structs_column_view(column_view const& col);
65 
71  [[nodiscard]] column_view parent() const;
72 
73  using column_view::child_begin;
74  using column_view::child_end;
77  using column_view::null_mask;
78  using column_view::num_children;
79  using column_view::offset;
80  using column_view::size;
81 
98  int index, rmm::cuda_stream_view stream = cudf::get_default_stream()) const;
99 }; // class structs_column_view; // end of group
101 } // 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...
Given a column view of struct type, an instance of this class provides a wrapper on this compound col...
column_view get_sliced_child(int index, rmm::cuda_stream_view stream=cudf::get_default_stream()) const
Returns the internal child column, applying any offset from the root.
column_view parent() const
Returns the parent column.
structs_column_view & operator=(structs_column_view const &)=default
Copy assignment operator.
structs_column_view(column_view const &col)
Construct a new structs column view object from a column view.
structs_column_view(structs_column_view &&)=default
Move constructor.
structs_column_view(structs_column_view const &)=default
Copy constructor.
structs_column_view & operator=(structs_column_view &&)=default
Move assignment operator.
Class definition for cudf::column.
column view class definitions
cudf::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,...
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
cuDF interfaces
Definition: aggregation.hpp:35
bool has_nulls(table_view const &view)
Returns True if the table has nulls in any of its columns.