ContigSplitGroupByResult#

public class ContigSplitGroupByResult 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

Method Summary

close()

closeGroups()

Close the split group tables.

closeUniqKeyTable()

Close the key table or key columns.

getGroups()

Get the split group tables.

getUniqKeyTable()

Get the key table, each row in the key table is corresponding to a group.

Methods

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

public void closeUniqKeyTable()#

Close the key table or key columns.

public ContiguousTable[] getGroups()#

Get the split group tables.

Note: Close the group tables by closeGroups

Returns:

the split group tables

public void closeGroups()#

Close the split group tables.

public void close()#