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

Method Resize

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

Source from the content-addressed store, hash-verified

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