| 100 | } |
| 101 | |
| 102 | Status KeyValueMetadata::Delete(int64_t index) { |
| 103 | if (ARROW_PREDICT_FALSE(index < 0 || index >= static_cast<int64_t>(keys_.size()))) { |
| 104 | return Status::IndexError("KeyValueMetadata::Delete: index ", index, |
| 105 | " is out of bounds for metadata " |
| 106 | "of size ", |
| 107 | keys_.size()); |
| 108 | } |
| 109 | keys_.erase(keys_.begin() + index); |
| 110 | values_.erase(values_.begin() + index); |
| 111 | return Status::OK(); |
| 112 | } |
| 113 | |
| 114 | Status KeyValueMetadata::DeleteMany(std::vector<int64_t> indices) { |
| 115 | std::sort(indices.begin(), indices.end()); |
nothing calls this directly
no test coverage detected