Turi Create
4.0
|
#include <core/storage/sframe_data/groupby.hpp>
Public Member Functions | |
hash_bucket_container (size_t num_buckets, comparator_type comparator=std::less< value_type >()) | |
Constructs a container with n buckets, and a comparator for sorting the values. | |
A container of a collection of "hash_bucket"s. Each hash_bucket store the value in sorted order. If the element is added to bucket by its hash_value, then all elements in the container are partially sorted, or grouped.
Below is an example of using the it to group an sframe by its first column.
Each hash_bucket has an in memory buffer, and is backed by an sarray segment. When the buffer is full, it is sorted and written into the sarray segment as a sorted chunk.
The sort_and_write function then merges the sorted chunks and write out to a new sarray or sframe.
Definition at line 75 of file groupby.hpp.