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

Method Resize

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

Source from the content-addressed store, hash-verified

1567 }
1568
1569 Status Resize(int64_t new_num_groups) override {
1570 auto added_groups = new_num_groups - num_groups_;
1571 num_groups_ = new_num_groups;
1572 RETURN_NOT_OK(ones_.Append(added_groups, static_cast<CType>(0)));
1573 RETURN_NOT_OK(has_one_.Append(added_groups, false));
1574 return Status::OK();
1575 }
1576
1577 Status Consume(const ExecSpan& batch) override {
1578 auto raw_ones_ = ones_.mutable_data();

Callers 15

PresizeBuilderFunction · 0.45
FinishMethod · 0.45
FinishMethod · 0.45
PushValueMethod · 0.45
FlushToSinkMethod · 0.45
WriteHeaderMethod · 0.45
TranslateMinimalBatchMethod · 0.45
TEST_FFunction · 0.45
BuildArrayMethod · 0.45
IdentityMethod · 0.45

Calls 2

OKFunction · 0.50
AppendMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
IdentityMethod · 0.36