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

Function GetKeyValueMetadata

cpp/src/arrow/ipc/metadata_internal.cc:1282–1300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1280} // namespace
1281
1282Status GetKeyValueMetadata(const KVVector* fb_metadata,
1283 std::shared_ptr<KeyValueMetadata>* out) {
1284 if (fb_metadata == nullptr) {
1285 *out = nullptr;
1286 return Status::OK();
1287 }
1288
1289 auto metadata = std::make_shared<KeyValueMetadata>();
1290
1291 metadata->reserve(fb_metadata->size());
1292 for (const auto pair : *fb_metadata) {
1293 CHECK_FLATBUFFERS_NOT_NULL(pair->key(), "custom_metadata.key");
1294 CHECK_FLATBUFFERS_NOT_NULL(pair->value(), "custom_metadata.value");
1295 metadata->Append(pair->key()->str(), pair->value()->str());
1296 }
1297
1298 *out = std::move(metadata);
1299 return Status::OK();
1300}
1301
1302Status WriteSchemaMessage(const Schema& schema, const DictionaryFieldMapper& mapper,
1303 const IpcWriteOptions& options, std::shared_ptr<Buffer>* out) {

Callers 8

ARROW_ASSIGN_OR_RAISEFunction · 0.85
ReadRecordBatchInternalFunction · 0.85
ReadFooterAsyncMethod · 0.85
OpenMethod · 0.85
FieldFromFlatbufferFunction · 0.85
GetSchemaFunction · 0.85

Calls 7

strMethod · 0.80
OKFunction · 0.50
reserveMethod · 0.45
sizeMethod · 0.45
keyMethod · 0.45
valueMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected