◆ HashAggregateGlobalSourceState()
160759 : op(op), state_index(0) {
160760 for (auto &grouping : op.groupings) {
160761 auto &rt = grouping.table_data;
160762 radix_states.push_back(rt.GetGlobalSourceState(context));
160763 }
160764 }
◆ MaxThreads()
| idx_t duckdb::HashAggregateGlobalSourceState::MaxThreads |
( |
| ) |
|
|
inlineoverridevirtual |
Reimplemented from duckdb::GlobalSourceState.
160772 {
160773
160774 if (op.groupings.empty()) {
160775 return 1;
160776 }
160777
160778 auto &ht_state = op.sink_state->Cast<HashAggregateGlobalSinkState>();
160779 idx_t threads = 0;
160780 for (size_t sidx = 0; sidx < op.groupings.size(); ++sidx) {
160781 auto &grouping = op.groupings[sidx];
160782 auto &grouping_gstate = ht_state.grouping_states[sidx];
160783 threads += grouping.table_data.MaxThreads(*grouping_gstate.table_state);
160784 }
160785 return MaxValue<idx_t>(1, threads);
160786 }
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
The documentation for this class was generated from the following file: