* hashagg_batch_new * * Construct a HashAggBatch item, which represents one iteration of HashAgg to * be done. */
| 3310 | * be done. |
| 3311 | */ |
| 3312 | static HashAggBatch * |
| 3313 | hashagg_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 |
no test coverage detected