tdigest_column_view.hpp
查看此文件的文档。
1 /*
2  * Copyright (c) 2021-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  * https://apache.ac.cn/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 
20 
21 namespace CUDF_EXPORT cudf {
23 namespace tdigest {
58  public
62  ~tdigest_column_view() override = default;
75 
76  using column_view::size;
77  using offset_iterator = size_type const*;
78 
79  // mean and weight column indices within tdigest inner struct columns
80  static constexpr size_type mean_column_index{0};
81  static constexpr size_type weight_column_index{1};
82 
83  // min and max column indices within tdigest outer struct columns
84  static constexpr size_type centroid_column_index{0};
85  static constexpr size_type min_column_index{1};
86  static constexpr size_type max_column_index{2};
87 
93  [[nodiscard]] column_view parent() const;
94 
100  [[nodiscard]] lists_column_view centroids() const;
101 
107  [[nodiscard]] column_view means() const;
108 
114  [[nodiscard]] column_view weights() const;
115 
122  [[nodiscard]] double const* min_begin() const;
123 
130  [[nodiscard]] double const* max_begin() const;
131 };
132  // end of group
134 } // namespace tdigest
135 } // namespace CUDF_EXPORT cudf
一个非拥有、不可变的设备数据视图,将数据视为一列元素,其中一些元素可能为 null,指示...
给定一个列表类型的列视图,此类的实例提供对这个复合列的封装...
给定一个包含 tdigest 数据的列视图,此类的实例提供对该复合数据的封装...
double const * min_begin() const
返回列的第一个最小值。每一行对应于相应数据的最小值...
size_type const * offset_iterator
偏移量的迭代器。
column_view means() const
返回内部均值列。
tdigest_column_view & operator=(tdigest_column_view &&)=default
移动赋值运算符。
tdigest_column_view(tdigest_column_view &&)=default
移动构造函数。
tdigest_column_view(tdigest_column_view const &)=default
复制构造函数。
column_view parent() const
返回父列。
tdigest_column_view(column_view const &)
从 column_view 构造 tdigest_column_view。
tdigest_column_view & operator=(tdigest_column_view const &)=default
复制赋值运算符。
lists_column_view centroids() const
返回重心列。
column_view weights() const
返回内部权重值列。
double const * max_begin() const
返回列的第一个最大值。每一行对应于相应数据的最大值...
列视图类定义
int32_t size_type
列和表的行索引类型。
定义: types.hpp:95
cudf::lists_column_view 的类定义。
cuDF 接口