| 163 | } |
| 164 | |
| 165 | Accumulator SortedAggregations::accumulator() const { |
| 166 | return { |
| 167 | false, |
| 168 | sizeof(RowPointers), |
| 169 | false, |
| 170 | 1, |
| 171 | ARRAY(VARBINARY()), |
| 172 | UNKNOWN(), |
| 173 | [this](folly::Range<char**> groups, VectorPtr& result) { |
| 174 | extractForSpill(groups, result); |
| 175 | }, |
| 176 | [this](folly::Range<char**> groups, VectorPtr& result) { |
| 177 | BOLT_UNREACHABLE(); |
| 178 | }, |
| 179 | [this](folly::Range<char**> groups) { |
| 180 | for (auto* group : groups) { |
| 181 | auto* accumulator = reinterpret_cast<RowPointers*>(group + offset_); |
| 182 | accumulator->free(*allocator_); |
| 183 | } |
| 184 | }}; |
| 185 | } |
| 186 | |
| 187 | void SortedAggregations::extractForSpill( |
| 188 | folly::Range<char**> groups, |
no test coverage detected