| 100 | } |
| 101 | |
| 102 | Status MapBuilder::FinishInternal(std::shared_ptr<ArrayData>* out) { |
| 103 | ARROW_CHECK_EQ(item_builder_->length(), key_builder_->length()) |
| 104 | << "keys and items builders don't have the same size in MapBuilder"; |
| 105 | RETURN_NOT_OK(AdjustStructBuilderLength()); |
| 106 | RETURN_NOT_OK(list_builder_->FinishInternal(out)); |
| 107 | (*out)->type = type(); |
| 108 | ArrayBuilder::Reset(); |
| 109 | return Status::OK(); |
| 110 | } |
| 111 | |
| 112 | Status MapBuilder::AppendValues(const int32_t* offsets, int64_t length, |
| 113 | const uint8_t* valid_bytes) { |