search.hpp
转到此文件的文档。
1 /*
2  * Copyright (c) 2019-2024, NVIDIA CORPORATION.
3  *
4  * 根据 Apache 许可证版本 2.0(“许可证”)授权;
5  * 除非遵守许可证,否则不得使用此文件。
6  * 您可以在以下位置获取许可证副本:
7  *
8  * https://apache.ac.cn/licenses/LICENSE-2.0
9  *
10  * 除非适用法律要求或书面同意,否则软件
11  * 根据许可证分发,基于“原样”基础,
12  * 不附带任何明示或默示的保证或条件。
13  * 有关管理权限和
14  * 限制的特定语言,请参阅许可证。
15  */
16 
17 #pragma once
18 
19 #include <cudf/column/column.hpp>
20 #include <cudf/scalar/scalar.hpp>
21 #include <cudf/table/table.hpp>
22 #include <cudf/types.hpp>
23 #include <cudf/utilities/export.hpp>
25 
26 #include <vector>
27 
28 namespace CUDF_EXPORT cudf {
70 std::unique_ptr<column> lower_bound(
71  table_view const& haystack,
72  table_view const& needles,
73  std::vector<order> const& column_order,
74  std::vector<null_order> const& null_precedence,
77 
112 std::unique_ptr<column> upper_bound(
113  table_view const& haystack,
114  table_view const& needles,
115  std::vector<order> const& column_order,
116  std::vector<null_order> const& null_precedence,
119 
138 bool contains(column_view const& haystack,
139  scalar const& needle,
141 
163 std::unique_ptr<column> contains(
164  column_view const& haystack,
165  column_view const& needles,
168  // 结束分组
170 } // namespace CUDF_EXPORT cudf
作为元素列的设备数据的非拥有、不可变视图,其中一些可能为 null,指示...
表示单个值的拥有类。
定义: scalar.hpp:51
一组大小相同的 cudf::column_view。
cudf::column 的类定义。
std::unique_ptr< column > upper_bound(table_view const &haystack, table_view const &needles, std::vector< order > const &column_order, std::vector< null_order > const &null_precedence, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
在排序表中找到应插入值以保持顺序的最大索引。
std::unique_ptr< column > lower_bound(table_view const &haystack, table_view const &needles, std::vector< order > const &column_order, std::vector< null_order > const &null_precedence, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
在排序表中找到应插入值以保持顺序的最小索引。
std::unique_ptr< column > contains(column_view const &haystack, column_view const &needles, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
检查给定 needle 值是否存在于 haystack 列中。
rmm::cuda_stream_view const get_default_stream()
获取当前默认流。
rmm::device_async_resource_ref get_current_device_resource_ref()
获取当前设备内存资源引用。
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
cuDF 接口
定义: host_udf.hpp:37
cudf::scalar 的类定义。
cudf::table 的类定义。
libcudf 的类型声明。