MCPcopy Create free account
hub / github.com/apache/arrow / Init

Method Init

cpp/src/arrow/compute/kernels/hash_aggregate.cc:1233–1240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1231template <typename Impl>
1232struct GroupedBooleanAggregator : public GroupedAggregator {
1233 Status Init(ExecContext* ctx, const KernelInitArgs& args) override {
1234 options_ = checked_cast<const ScalarAggregateOptions&>(*args.options);
1235 pool_ = ctx->memory_pool();
1236 reduced_ = TypedBufferBuilder<bool>(pool_);
1237 no_nulls_ = TypedBufferBuilder<bool>(pool_);
1238 counts_ = TypedBufferBuilder<int64_t>(pool_);
1239 return Status::OK();
1240 }
1241
1242 Status Resize(int64_t new_num_groups) override {
1243 auto added_groups = new_num_groups - num_groups_;

Callers

nothing calls this directly

Calls 2

OKFunction · 0.50
memory_poolMethod · 0.45

Tested by

no test coverage detected