| 164 | } |
| 165 | |
| 166 | Status MapBuilder::AdjustStructBuilderLength() { |
| 167 | // If key/item builders have been appended, adjust struct builder length |
| 168 | // to match. Struct and key are non-nullable, append all valid values. |
| 169 | auto struct_builder = |
| 170 | internal::checked_cast<StructBuilder*>(list_builder_->value_builder()); |
| 171 | if (struct_builder->length() < key_builder_->length()) { |
| 172 | int64_t length_diff = key_builder_->length() - struct_builder->length(); |
| 173 | RETURN_NOT_OK(struct_builder->AppendValues(length_diff, NULLPTR)); |
| 174 | } |
| 175 | return Status::OK(); |
| 176 | } |
| 177 | |
| 178 | // ---------------------------------------------------------------------- |
| 179 | // FixedSizeListBuilder |
nothing calls this directly
no test coverage detected