Class ContigSplitGroupByResult

java.lang.Object
ai.rapids.cudf.ContigSplitGroupByResult
All Implemented Interfaces:
AutoCloseable

public class ContigSplitGroupByResult extends Object implements 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 Details

    • ContigSplitGroupByResult

      public ContigSplitGroupByResult()
  • Method Details

    • getUniqKeyTable

      public Table 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

      public ContiguousTable[] 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 interface AutoCloseable