Package ai.rapids.cudf
Class ContigSplitGroupByResult
java.lang.Object
ai.rapids.cudf.ContigSplitGroupByResult
- All Implemented Interfaces:
AutoCloseable
Used to save groups and uniq key table for `Table.contiguousSplitGroupsAndGenUniqKeys`
Each row in uniq key table is corresponding to a group
Resource management note:
This class is the owner of `groups` and
`uniqKeysTable`(or uniqKeyColumns if table is not constructed)
1: Use `closeGroups` and `closeUniqKeyTable` to close the resources separately
if you want to close eagerly.
2: Or auto close them by `AutoCloseable`
Use `releaseGroups` to release the ownership of the `groups` to the caller,
then the caller is responsible to close the `groups`
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
Close the split group tablesvoid
Close the key table or key columnsGet the split group tables.Get the key table, each row in the key table is corresponding to a group.
-
Constructor Details
-
ContigSplitGroupByResult
public ContigSplitGroupByResult()
-
-
Method Details
-
getUniqKeyTable
Get the key table, each row in the key table is corresponding to a group. Note: Close the key table by `closeUniqKeyTable`- Returns:
- the key table, it could be null if invoking native method `Table.contiguousSplitGroups` with `genUniqKeys` as false
-
closeUniqKeyTable
public void closeUniqKeyTable()Close the key table or key columns -
getGroups
Get the split group tables. Note: Close the group tables by `closeGroups`- Returns:
- the split group tables
-
closeGroups
public void closeGroups()Close the split group tables -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-