search.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2023, 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 
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 
25 
26 #include <vector>
27 
28 namespace cudf {
69 std::unique_ptr<column> lower_bound(
70  table_view const& haystack,
71  table_view const& needles,
72  std::vector<order> const& column_order,
73  std::vector<null_order> const& null_precedence,
74  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
75 
109 std::unique_ptr<column> upper_bound(
110  table_view const& haystack,
111  table_view const& needles,
112  std::vector<order> const& column_order,
113  std::vector<null_order> const& null_precedence,
114  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
115 
133 bool contains(column_view const& haystack, scalar const& needle);
134 
155 std::unique_ptr<column> contains(
156  column_view const& haystack,
157  column_view const& needles,
158  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
159  // end of group
161 } // namespace cudf
per_device_resource.hpp
scalar.hpp
Class definitions for cudf::scalar.
column.hpp
Class definition for cudf::column.
cudf::column_view
A non-owning, immutable view of device data as a column of elements, some of which may be null as ind...
Definition: column_view.hpp:313
types.hpp
Type declarations for libcudf.
cudf::contains
bool contains(column_view const &haystack, scalar const &needle)
Check if the given needle value exists in the haystack column.
cudf::scalar
An owning class to represent a singular value.
Definition: scalar.hpp:48
cudf::table_view
A set of cudf::column_view's of the same size.
Definition: table_view.hpp:187
cudf::upper_bound
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::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Find largest indices in a sorted table where values should be inserted to maintain order.
cudf
cuDF interfaces
Definition: aggregation.hpp:34
cudf::lower_bound
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::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Find smallest indices in a sorted table where values should be inserted to maintain order.
table.hpp
Class definition for cudf::table.
rmm::mr::device_memory_resource