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

Method AppendEmptyValues

cpp/src/arrow/array/builder_nested.cc:157–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157Status MapBuilder::AppendEmptyValues(int64_t length) {
158 DCHECK_EQ(item_builder_->length(), key_builder_->length());
159 RETURN_NOT_OK(AdjustStructBuilderLength());
160 RETURN_NOT_OK(list_builder_->AppendEmptyValues(length));
161 length_ = list_builder_->length();
162 null_count_ = list_builder_->null_count();
163 return Status::OK();
164}
165
166Status MapBuilder::AdjustStructBuilderLength() {
167 // If key/item builders have been appended, adjust struct builder length

Callers 9

AppendEmptyValuesFunction · 0.45
AppendEmptyValueMethod · 0.45
AppendNullsFunction · 0.45
AppendEmptyValuesFunction · 0.45
TYPED_TESTFunction · 0.45
TEST_FFunction · 0.45
TEST_PFunction · 0.45

Calls 5

UnsafeAppendToBitmapFunction · 0.85
ReserveFunction · 0.70
OKFunction · 0.50
lengthMethod · 0.45
null_countMethod · 0.45

Tested by 4

TYPED_TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_PFunction · 0.36