Package ai.rapids.cudf
Class HashJoin
java.lang.Object
ai.rapids.cudf.HashJoin
- All Implemented Interfaces:
AutoCloseable
This class represents a hash table built from the join keys of the right-side table for a
join operation. This hash table can then be reused across a series of left probe tables
to compute gather maps for joins more efficiently when the right-side table is not changing.
It can also be used to query the output row count of a join and then pass that result to the
operation that generates the join gather maps to avoid redundant computation when the output
row count must be checked before manifesting the join gather maps.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
Returns true if the hash table was built to match on nulls otherwise false.long
Get the number of join key columns for the table that was used to generate the has table.
-
Constructor Details
-
HashJoin
Construct a hash table for a join from a table representing the join key columns from the right-side table in the join. The resulting instance must be closed to release the GPU resources associated with the instance.- Parameters:
buildKeys
- table view containing the join keys for the right-side join tablecompareNulls
- true if null key values should match otherwise false
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getNumberOfColumns
public long getNumberOfColumns()Get the number of join key columns for the table that was used to generate the has table. -
getCompareNulls
public boolean getCompareNulls()Returns true if the hash table was built to match on nulls otherwise false.
-