tdigest_column_view.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2021-2024, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 #pragma once
6 
9 
10 namespace CUDF_EXPORT cudf {
12 namespace tdigest {
47  public:
51  ~tdigest_column_view() override = default;
64 
65  using column_view::size;
66  using offset_iterator = size_type const*;
67 
68  // mean and weight column indices within tdigest inner struct columns
69  static constexpr size_type mean_column_index{0};
70  static constexpr size_type weight_column_index{1};
71 
72  // min and max column indices within tdigest outer struct columns
73  static constexpr size_type centroid_column_index{0};
74  static constexpr size_type min_column_index{1};
75  static constexpr size_type max_column_index{2};
76 
82  [[nodiscard]] column_view parent() const;
83 
89  [[nodiscard]] lists_column_view centroids() const;
90 
96  [[nodiscard]] column_view means() const;
97 
103  [[nodiscard]] column_view weights() const;
104 
111  [[nodiscard]] double const* min_begin() const;
112 
119  [[nodiscard]] double const* max_begin() const;
120 };
121  // end of group
123 } // namespace tdigest
124 } // 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 lists type, an instance of this class provides a wrapper on this compound colu...
Given a column_view containing tdigest data, an instance of this class provides a wrapper on the comp...
double const * min_begin() const
Returns the first min value for the column. Each row corresponds to the minimum value for the accompa...
size_type const * offset_iterator
Iterator over offsets.
column_view means() const
Returns the internal column of mean values.
tdigest_column_view & operator=(tdigest_column_view &&)=default
Move assignment operator.
tdigest_column_view(tdigest_column_view &&)=default
Move constructor.
tdigest_column_view(tdigest_column_view const &)=default
Copy constructor.
column_view parent() const
Returns the parent column.
tdigest_column_view(column_view const &)
Construct tdigest_column_view from a column_view.
tdigest_column_view & operator=(tdigest_column_view const &)=default
Copy assignment operator.
lists_column_view centroids() const
Returns the column of centroids.
column_view weights() const
Returns the internal column of weight values.
double const * max_begin() const
Returns the first max value for the column. Each row corresponds to the maximum value for the accompa...
column view class definitions
int32_t size_type
Row index type for columns and tables.
Definition: types.hpp:84
Class definition for cudf::lists_column_view.
cuDF interfaces
Definition: host_udf.hpp:26