| 326 | } |
| 327 | |
| 328 | Result<std::shared_ptr<const KeyValueMetadata>> ReadMetadata() { |
| 329 | const std::list<std::string> keys = reader_->getMetadataKeys(); |
| 330 | auto metadata = std::make_shared<KeyValueMetadata>(); |
| 331 | for (const auto& key : keys) { |
| 332 | metadata->Append(key, reader_->getMetadataValue(key)); |
| 333 | } |
| 334 | return std::const_pointer_cast<const KeyValueMetadata>(metadata); |
| 335 | } |
| 336 | |
| 337 | Result<std::shared_ptr<Schema>> GetArrowSchema(const liborc::Type& type) { |
| 338 | if (type.getKind() != liborc::STRUCT) { |