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

Method type

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

Source from the content-addressed store, hash-verified

111}
112
113std::shared_ptr<DataType> BasicUnionBuilder::type() const {
114 std::vector<std::shared_ptr<Field>> child_fields(child_fields_.size());
115 for (size_t i = 0; i < child_fields.size(); ++i) {
116 child_fields[i] = child_fields_[i]->WithType(children_[i]->type());
117 }
118 return mode_ == UnionMode::SPARSE ? sparse_union(std::move(child_fields), type_codes_)
119 : dense_union(std::move(child_fields), type_codes_);
120}
121
122int8_t BasicUnionBuilder::NextTypeId() {
123 // Find type_id such that type_id_to_children_[type_id] == nullptr

Callers 15

GenerateRandomTableFunction · 0.45
TESTFunction · 0.45
RunTestMethod · 0.45
TEST_FFunction · 0.45
FlattenSparseUnionArrayFunction · 0.45
AppendUnionBatchInternalFunction · 0.45
AppendUnionBatchFunction · 0.45
NormalizeArrayFunction · 0.45
WriteStructBatchFunction · 0.45
WriteBatchFunction · 0.45
GetOrcTypeFunction · 0.45

Calls 4

sparse_unionFunction · 0.85
dense_unionFunction · 0.85
WithTypeMethod · 0.80
sizeMethod · 0.45

Tested by 15

GenerateRandomTableFunction · 0.36
TESTFunction · 0.36
RunTestMethod · 0.36
TEST_FFunction · 0.36
FlattenSparseUnionArrayFunction · 0.36
ASSERT_OK_AND_ASSIGNFunction · 0.36
TESTFunction · 0.36
RunGroupByFunction · 0.36
GetMultiSegmentKeyOutputFunction · 0.36
TESTFunction · 0.36
MakeBatchesFromNumStringFunction · 0.36