join.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/ast/expressions.hpp>
20 #include <cudf/hashing.hpp>
22 #include <cudf/types.hpp>
23 #include <cudf/utilities/default_stream.hpp>
24 #include <cudf/utilities/span.hpp>
25 
26 #include <rmm/cuda_stream_view.hpp>
27 #include <rmm/device_uvector.hpp>
29 
30 #include <optional>
31 #include <utility>
32 #include <vector>
33 
34 namespace cudf {
35 
36 // forward declaration
37 namespace detail {
38 template <typename T>
40 
41 template <typename T>
42 class hash_join;
43 } // namespace detail
44 
83 std::pair<std::unique_ptr<rmm::device_uvector<size_type>>,
84  std::unique_ptr<rmm::device_uvector<size_type>>>
85 inner_join(cudf::table_view const& left_keys,
86  cudf::table_view const& right_keys,
87  null_equality compare_nulls = null_equality::EQUAL,
88  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
89 
123 std::pair<std::unique_ptr<rmm::device_uvector<size_type>>,
124  std::unique_ptr<rmm::device_uvector<size_type>>>
125 left_join(cudf::table_view const& left_keys,
126  cudf::table_view const& right_keys,
127  null_equality compare_nulls = null_equality::EQUAL,
128  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
129 
162 std::pair<std::unique_ptr<rmm::device_uvector<size_type>>,
163  std::unique_ptr<rmm::device_uvector<size_type>>>
164 full_join(cudf::table_view const& left_keys,
165  cudf::table_view const& right_keys,
166  null_equality compare_nulls = null_equality::EQUAL,
167  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
168 
191 std::unique_ptr<rmm::device_uvector<size_type>> left_semi_join(
192  cudf::table_view const& left_keys,
193  cudf::table_view const& right_keys,
194  null_equality compare_nulls = null_equality::EQUAL,
195  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
196 
222 std::unique_ptr<rmm::device_uvector<size_type>> left_anti_join(
223  cudf::table_view const& left_keys,
224  cudf::table_view const& right_keys,
225  null_equality compare_nulls = null_equality::EQUAL,
226  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
227 
250 std::unique_ptr<cudf::table> cross_join(
251  cudf::table_view const& left,
252  cudf::table_view const& right,
253  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
254 
263 enum class nullable_join : bool { YES, NO };
264 
272 class hash_join {
273  public:
276 
277  hash_join() = delete;
278  ~hash_join();
279  hash_join(hash_join const&) = delete;
280  hash_join(hash_join&&) = delete;
281  hash_join& operator=(hash_join const&) = delete;
282  hash_join& operator=(hash_join&&) = delete;
283 
295  null_equality compare_nulls,
297 
306  null_equality compare_nulls,
308 
327  std::pair<std::unique_ptr<rmm::device_uvector<size_type>>,
328  std::unique_ptr<rmm::device_uvector<size_type>>>
330  std::optional<std::size_t> output_size = {},
332  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource()) const;
333 
352  std::pair<std::unique_ptr<rmm::device_uvector<size_type>>,
353  std::unique_ptr<rmm::device_uvector<size_type>>>
355  std::optional<std::size_t> output_size = {},
357  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource()) const;
358 
377  std::pair<std::unique_ptr<rmm::device_uvector<size_type>>,
378  std::unique_ptr<rmm::device_uvector<size_type>>>
380  std::optional<std::size_t> output_size = {},
382  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource()) const;
383 
397  [[nodiscard]] std::size_t inner_join_size(
398  cudf::table_view const& probe, rmm::cuda_stream_view stream = cudf::get_default_stream()) const;
399 
413  [[nodiscard]] std::size_t left_join_size(
414  cudf::table_view const& probe, rmm::cuda_stream_view stream = cudf::get_default_stream()) const;
415 
431  std::size_t full_join_size(
432  cudf::table_view const& probe,
434  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource()) const;
435 
436  private:
437  const std::unique_ptr<const impl_type> _impl;
438 };
439 
475 std::pair<std::unique_ptr<rmm::device_uvector<size_type>>,
476  std::unique_ptr<rmm::device_uvector<size_type>>>
478  table_view const& left,
479  table_view const& right,
480  ast::expression const& binary_predicate,
481  std::optional<std::size_t> output_size = {},
482  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
483 
521 std::pair<std::unique_ptr<rmm::device_uvector<size_type>>,
522  std::unique_ptr<rmm::device_uvector<size_type>>>
524  table_view const& right,
525  ast::expression const& binary_predicate,
526  std::optional<std::size_t> output_size = {},
527  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
528 
564 std::pair<std::unique_ptr<rmm::device_uvector<size_type>>,
565  std::unique_ptr<rmm::device_uvector<size_type>>>
567  table_view const& right,
568  ast::expression const& binary_predicate,
569  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
570 
603 std::unique_ptr<rmm::device_uvector<size_type>> conditional_left_semi_join(
604  table_view const& left,
605  table_view const& right,
606  ast::expression const& binary_predicate,
607  std::optional<std::size_t> output_size = {},
608  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
609 
642 std::unique_ptr<rmm::device_uvector<size_type>> conditional_left_anti_join(
643  table_view const& left,
644  table_view const& right,
645  ast::expression const& binary_predicate,
646  std::optional<std::size_t> output_size = {},
647  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
648 
695 std::pair<std::unique_ptr<rmm::device_uvector<size_type>>,
696  std::unique_ptr<rmm::device_uvector<size_type>>>
698  table_view const& left_equality,
699  table_view const& right_equality,
700  table_view const& left_conditional,
701  table_view const& right_conditional,
702  ast::expression const& binary_predicate,
703  null_equality compare_nulls = null_equality::EQUAL,
704  std::optional<std::pair<std::size_t, device_span<size_type const>>> output_size_data = {},
705  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
706 
755 std::pair<std::unique_ptr<rmm::device_uvector<size_type>>,
756  std::unique_ptr<rmm::device_uvector<size_type>>>
758  table_view const& left_equality,
759  table_view const& right_equality,
760  table_view const& left_conditional,
761  table_view const& right_conditional,
762  ast::expression const& binary_predicate,
763  null_equality compare_nulls = null_equality::EQUAL,
764  std::optional<std::pair<std::size_t, device_span<size_type const>>> output_size_data = {},
765  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
766 
815 std::pair<std::unique_ptr<rmm::device_uvector<size_type>>,
816  std::unique_ptr<rmm::device_uvector<size_type>>>
818  table_view const& left_equality,
819  table_view const& right_equality,
820  table_view const& left_conditional,
821  table_view const& right_conditional,
822  ast::expression const& binary_predicate,
823  null_equality compare_nulls = null_equality::EQUAL,
824  std::optional<std::pair<std::size_t, device_span<size_type const>>> output_size_data = {},
825  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
826 
868 std::unique_ptr<rmm::device_uvector<size_type>> mixed_left_semi_join(
869  table_view const& left_equality,
870  table_view const& right_equality,
871  table_view const& left_conditional,
872  table_view const& right_conditional,
873  ast::expression const& binary_predicate,
874  null_equality compare_nulls = null_equality::EQUAL,
875  std::optional<std::pair<std::size_t, device_span<size_type const>>> output_size_data = {},
876  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
877 
920 std::unique_ptr<rmm::device_uvector<size_type>> mixed_left_anti_join(
921  table_view const& left_equality,
922  table_view const& right_equality,
923  table_view const& left_conditional,
924  table_view const& right_conditional,
925  ast::expression const& binary_predicate,
926  null_equality compare_nulls = null_equality::EQUAL,
927  std::optional<std::pair<std::size_t, device_span<size_type const>>> output_size_data = {},
928  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
929 
961 std::pair<std::size_t, std::unique_ptr<rmm::device_uvector<size_type>>> mixed_inner_join_size(
962  table_view const& left_equality,
963  table_view const& right_equality,
964  table_view const& left_conditional,
965  table_view const& right_conditional,
966  ast::expression const& binary_predicate,
967  null_equality compare_nulls = null_equality::EQUAL,
968  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
969 
1001 std::pair<std::size_t, std::unique_ptr<rmm::device_uvector<size_type>>> mixed_left_join_size(
1002  table_view const& left_equality,
1003  table_view const& right_equality,
1004  table_view const& left_conditional,
1005  table_view const& right_conditional,
1006  ast::expression const& binary_predicate,
1007  null_equality compare_nulls = null_equality::EQUAL,
1008  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
1009 
1041 std::pair<std::size_t, std::unique_ptr<rmm::device_uvector<size_type>>> mixed_left_semi_join_size(
1042  table_view const& left_equality,
1043  table_view const& right_equality,
1044  table_view const& left_conditional,
1045  table_view const& right_conditional,
1046  ast::expression const& binary_predicate,
1047  null_equality compare_nulls = null_equality::EQUAL,
1048  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
1049 
1079 std::pair<std::size_t, std::unique_ptr<rmm::device_uvector<size_type>>> mixed_left_anti_join_size(
1080  table_view const& left_equality,
1081  table_view const& right_equality,
1082  table_view const& left_conditional,
1083  table_view const& right_conditional,
1084  ast::expression const& binary_predicate,
1085  null_equality compare_nulls = null_equality::EQUAL,
1086  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
1087 
1106  table_view const& left,
1107  table_view const& right,
1108  ast::expression const& binary_predicate,
1109  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
1110 
1129  table_view const& left,
1130  table_view const& right,
1131  ast::expression const& binary_predicate,
1132  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
1133 
1152  table_view const& left,
1153  table_view const& right,
1154  ast::expression const& binary_predicate,
1155  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
1156 
1175  table_view const& left,
1176  table_view const& right,
1177  ast::expression const& binary_predicate,
1178  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource()); // end of group
1180 } // namespace cudf
cudf::hash_join::impl_type
typename cudf::detail::hash_join< cudf::detail::MurmurHash3_32< cudf::hash_value_type > > impl_type
Implementation type.
Definition: join.hpp:275
cudf::nullable_join
nullable_join
The enum class to specify if any of the input join tables (build table and any later probe table) has...
Definition: join.hpp:263
per_device_resource.hpp
table_view.hpp
Class definitions for (mutable)_table_view
cudf::mixed_left_anti_join_size
std::pair< std::size_t, std::unique_ptr< rmm::device_uvector< size_type > > > mixed_left_anti_join_size(table_view const &left_equality, table_view const &right_equality, table_view const &left_conditional, table_view const &right_conditional, ast::expression const &binary_predicate, null_equality compare_nulls=null_equality::EQUAL, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns the exact number of matches (rows) when performing a mixed left anti join between the specifi...
cudf::cross_join
std::unique_ptr< cudf::table > cross_join(cudf::table_view const &left, cudf::table_view const &right, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Performs a cross join on two tables (left, right)
cudf::mixed_left_join
std::pair< std::unique_ptr< rmm::device_uvector< size_type > >, std::unique_ptr< rmm::device_uvector< size_type > > > mixed_left_join(table_view const &left_equality, table_view const &right_equality, table_view const &left_conditional, table_view const &right_conditional, ast::expression const &binary_predicate, null_equality compare_nulls=null_equality::EQUAL, std::optional< std::pair< std::size_t, device_span< size_type const >>> output_size_data={}, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns a pair of row index vectors corresponding to all pairs of rows between the specified tables w...
cudf::conditional_full_join
std::pair< std::unique_ptr< rmm::device_uvector< size_type > >, std::unique_ptr< rmm::device_uvector< size_type > > > conditional_full_join(table_view const &left, table_view const &right, ast::expression const &binary_predicate, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns a pair of row index vectors corresponding to all pairs of rows between the specified tables w...
cudf::mixed_left_semi_join
std::unique_ptr< rmm::device_uvector< size_type > > mixed_left_semi_join(table_view const &left_equality, table_view const &right_equality, table_view const &left_conditional, table_view const &right_conditional, ast::expression const &binary_predicate, null_equality compare_nulls=null_equality::EQUAL, std::optional< std::pair< std::size_t, device_span< size_type const >>> output_size_data={}, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns an index vector corresponding to all rows in the left tables where the columns of the equalit...
cudf::left_join
std::pair< std::unique_ptr< rmm::device_uvector< size_type > >, std::unique_ptr< rmm::device_uvector< size_type > > > left_join(cudf::table_view const &left_keys, cudf::table_view const &right_keys, null_equality compare_nulls=null_equality::EQUAL, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns a pair of row index vectors corresponding to a left join between the specified tables.
types.hpp
Type declarations for libcudf.
cudf::conditional_left_semi_join
std::unique_ptr< rmm::device_uvector< size_type > > conditional_left_semi_join(table_view const &left, table_view const &right, ast::expression const &binary_predicate, std::optional< std::size_t > output_size={}, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns an index vector corresponding to all rows in the left table for which there exists some row i...
cudf::left_anti_join
std::unique_ptr< rmm::device_uvector< size_type > > left_anti_join(cudf::table_view const &left_keys, cudf::table_view const &right_keys, null_equality compare_nulls=null_equality::EQUAL, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns a vector of row indices corresponding to a left anti join between the specified tables.
cudf::hash_join::inner_join
std::pair< std::unique_ptr< rmm::device_uvector< size_type > >, std::unique_ptr< rmm::device_uvector< size_type > > > inner_join(cudf::table_view const &probe, std::optional< std::size_t > output_size={}, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) const
cudf::conditional_left_anti_join_size
std::size_t conditional_left_anti_join_size(table_view const &left, table_view const &right, ast::expression const &binary_predicate, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns the exact number of matches (rows) when performing a conditional left anti join between the s...
rmm::cuda_stream_view
cudf::hash_join::full_join_size
std::size_t full_join_size(cudf::table_view const &probe, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) const
cudf::detail::hash_join
Definition: join.hpp:42
cudf::mixed_left_join_size
std::pair< std::size_t, std::unique_ptr< rmm::device_uvector< size_type > > > mixed_left_join_size(table_view const &left_equality, table_view const &right_equality, table_view const &left_conditional, table_view const &right_conditional, ast::expression const &binary_predicate, null_equality compare_nulls=null_equality::EQUAL, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns the exact number of matches (rows) when performing a mixed left join between the specified ta...
hashing.hpp
cudf::hash_join::hash_join
hash_join(cudf::table_view const &build, null_equality compare_nulls, rmm::cuda_stream_view stream=cudf::get_default_stream())
Construct a hash join object for subsequent probe calls.
cudf::conditional_left_anti_join
std::unique_ptr< rmm::device_uvector< size_type > > conditional_left_anti_join(table_view const &left, table_view const &right, ast::expression const &binary_predicate, std::optional< std::size_t > output_size={}, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns an index vector corresponding to all rows in the left table for which there does not exist an...
cudf::mixed_inner_join
std::pair< std::unique_ptr< rmm::device_uvector< size_type > >, std::unique_ptr< rmm::device_uvector< size_type > > > mixed_inner_join(table_view const &left_equality, table_view const &right_equality, table_view const &left_conditional, table_view const &right_conditional, ast::expression const &binary_predicate, null_equality compare_nulls=null_equality::EQUAL, std::optional< std::pair< std::size_t, device_span< size_type const >>> output_size_data={}, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns a pair of row index vectors corresponding to all pairs of rows between the specified tables w...
cudf::left_semi_join
std::unique_ptr< rmm::device_uvector< size_type > > left_semi_join(cudf::table_view const &left_keys, cudf::table_view const &right_keys, null_equality compare_nulls=null_equality::EQUAL, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns a vector of row indices corresponding to a left semi-join between the specified tables.
cudf::conditional_inner_join_size
std::size_t conditional_inner_join_size(table_view const &left, table_view const &right, ast::expression const &binary_predicate, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns the exact number of matches (rows) when performing a conditional inner join between the speci...
cudf::hash_join
Hash join that builds hash table in creation and probes results in subsequent *_join member functions...
Definition: join.hpp:272
cudf::hash_join::left_join
std::pair< std::unique_ptr< rmm::device_uvector< size_type > >, std::unique_ptr< rmm::device_uvector< size_type > > > left_join(cudf::table_view const &probe, std::optional< std::size_t > output_size={}, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) const
cudf::ast::expression
A generic expression that can be evaluated to return a value.
Definition: expressions.hpp:40
cudf::conditional_left_join
std::pair< std::unique_ptr< rmm::device_uvector< size_type > >, std::unique_ptr< rmm::device_uvector< size_type > > > conditional_left_join(table_view const &left, table_view const &right, ast::expression const &binary_predicate, std::optional< std::size_t > output_size={}, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns a pair of row index vectors corresponding to all pairs of rows between the specified tables w...
cudf::table_view
A set of cudf::column_view's of the same size.
Definition: table_view.hpp:187
cudf::conditional_left_semi_join_size
std::size_t conditional_left_semi_join_size(table_view const &left, table_view const &right, ast::expression const &binary_predicate, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns the exact number of matches (rows) when performing a conditional left semi join between the s...
cudf::conditional_left_join_size
std::size_t conditional_left_join_size(table_view const &left, table_view const &right, ast::expression const &binary_predicate, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns the exact number of matches (rows) when performing a conditional left join between the specif...
cudf::hash_join::inner_join_size
std::size_t inner_join_size(cudf::table_view const &probe, rmm::cuda_stream_view stream=cudf::get_default_stream()) const
cudf::mixed_full_join
std::pair< std::unique_ptr< rmm::device_uvector< size_type > >, std::unique_ptr< rmm::device_uvector< size_type > > > mixed_full_join(table_view const &left_equality, table_view const &right_equality, table_view const &left_conditional, table_view const &right_conditional, ast::expression const &binary_predicate, null_equality compare_nulls=null_equality::EQUAL, std::optional< std::pair< std::size_t, device_span< size_type const >>> output_size_data={}, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns a pair of row index vectors corresponding to all pairs of rows between the specified tables w...
cudf::hash_join::full_join
std::pair< std::unique_ptr< rmm::device_uvector< size_type > >, std::unique_ptr< rmm::device_uvector< size_type > > > full_join(cudf::table_view const &probe, std::optional< std::size_t > output_size={}, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) const
cudf
cuDF interfaces
Definition: aggregation.hpp:34
cudf::hash_join::hash_join
hash_join(cudf::table_view const &build, nullable_join has_nulls, null_equality compare_nulls, rmm::cuda_stream_view stream=cudf::get_default_stream())
Construct a hash join object for subsequent probe calls.
cudf::has_nulls
bool has_nulls(table_view const &view)
Returns True if the table has nulls in any of its columns.
Definition: table_view.hpp:318
cudf::conditional_inner_join
std::pair< std::unique_ptr< rmm::device_uvector< size_type > >, std::unique_ptr< rmm::device_uvector< size_type > > > conditional_inner_join(table_view const &left, table_view const &right, ast::expression const &binary_predicate, std::optional< std::size_t > output_size={}, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns a pair of row index vectors corresponding to all pairs of rows between the specified tables w...
cudf::get_default_stream
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
cudf::detail::MurmurHash3_32
Definition: join.hpp:39
cudf::mixed_left_anti_join
std::unique_ptr< rmm::device_uvector< size_type > > mixed_left_anti_join(table_view const &left_equality, table_view const &right_equality, table_view const &left_conditional, table_view const &right_conditional, ast::expression const &binary_predicate, null_equality compare_nulls=null_equality::EQUAL, std::optional< std::pair< std::size_t, device_span< size_type const >>> output_size_data={}, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns an index vector corresponding to all rows in the left tables for which there is no row in the...
cudf::full_join
std::pair< std::unique_ptr< rmm::device_uvector< size_type > >, std::unique_ptr< rmm::device_uvector< size_type > > > full_join(cudf::table_view const &left_keys, cudf::table_view const &right_keys, null_equality compare_nulls=null_equality::EQUAL, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns a pair of row index vectors corresponding to a full join between the specified tables.
cudf::null_equality
null_equality
Enum to consider two nulls as equal or unequal.
Definition: types.hpp:136
rmm::mr::device_memory_resource
cudf::device_span
Device version of C++20 std::span with reduced feature set.
Definition: span.hpp:277
cudf::mixed_left_semi_join_size
std::pair< std::size_t, std::unique_ptr< rmm::device_uvector< size_type > > > mixed_left_semi_join_size(table_view const &left_equality, table_view const &right_equality, table_view const &left_conditional, table_view const &right_conditional, ast::expression const &binary_predicate, null_equality compare_nulls=null_equality::EQUAL, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns the exact number of matches (rows) when performing a mixed left semi join between the specifi...
cudf::mixed_inner_join_size
std::pair< std::size_t, std::unique_ptr< rmm::device_uvector< size_type > > > mixed_inner_join_size(table_view const &left_equality, table_view const &right_equality, table_view const &left_conditional, table_view const &right_conditional, ast::expression const &binary_predicate, null_equality compare_nulls=null_equality::EQUAL, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns the exact number of matches (rows) when performing a mixed inner join between the specified t...
cudf::hash_join::left_join_size
std::size_t left_join_size(cudf::table_view const &probe, rmm::cuda_stream_view stream=cudf::get_default_stream()) const
cudf::inner_join
std::pair< std::unique_ptr< rmm::device_uvector< size_type > >, std::unique_ptr< rmm::device_uvector< size_type > > > inner_join(cudf::table_view const &left_keys, cudf::table_view const &right_keys, null_equality compare_nulls=null_equality::EQUAL, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns a pair of row index vectors corresponding to an inner join between the specified tables.