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

Method ReadMetadata

cpp/src/arrow/adapters/orc/adapter.cc:328–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

AppendMethod · 0.45

Tested by

no test coverage detected