MCPcopy Create free account
hub / github.com/apache/cloudberry / hashagg_batch_new

Function hashagg_batch_new

src/backend/executor/nodeAgg.c:3312–3326  ·  view source on GitHub ↗

* hashagg_batch_new * * Construct a HashAggBatch item, which represents one iteration of HashAgg to * be done. */

Source from the content-addressed store, hash-verified

3310 * be done.
3311 */
3312static HashAggBatch *
3313hashagg_batch_new(LogicalTapeSet *tapeset, int tapenum, int setno,
3314 int64 input_tuples, double input_card, int used_bits)
3315{
3316 HashAggBatch *batch = palloc0(sizeof(HashAggBatch));
3317
3318 batch->setno = setno;
3319 batch->used_bits = used_bits;
3320 batch->tapeset = tapeset;
3321 batch->input_tapenum = tapenum;
3322 batch->input_tuples = input_tuples;
3323 batch->input_card = input_card;
3324
3325 return batch;
3326}
3327
3328/*
3329 * read_spilled_tuple

Callers 1

hashagg_spill_finishFunction · 0.85

Calls 1

palloc0Function · 0.50

Tested by

no test coverage detected