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

Method FinishInternal

cpp/src/arrow/array/builder_union.cc:32–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using internal::checked_pointer_cast;
31
32Status BasicUnionBuilder::FinishInternal(std::shared_ptr<ArrayData>* out) {
33 int64_t length = types_builder_.length();
34
35 std::shared_ptr<Buffer> types;
36 RETURN_NOT_OK(types_builder_.Finish(&types));
37
38 std::vector<std::shared_ptr<ArrayData>> child_data(children_.size());
39 for (size_t i = 0; i < children_.size(); ++i) {
40 RETURN_NOT_OK(children_[i]->FinishInternal(&child_data[i]));
41 }
42
43 *out = ArrayData::Make(type(), length, {nullptr, types}, /*null_count=*/0);
44 (*out)->child_data = std::move(child_data);
45 return Status::OK();
46}
47
48Status DenseUnionBuilder::AppendArraySlice(const ArraySpan& array, const int64_t offset,
49 const int64_t length) {

Callers 3

ListFromListViewImplFunction · 0.45

Calls 8

FinishInternalFunction · 0.85
resizeMethod · 0.80
MakeFunction · 0.70
typeFunction · 0.70
OKFunction · 0.50
lengthMethod · 0.45
FinishMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected