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

Function FileBlocksToFlatbuffer

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

Source from the content-addressed store, hash-verified

1387}
1388
1389static flatbuffers::Offset<flatbuffers::Vector<const flatbuf::Block*>>
1390FileBlocksToFlatbuffer(FBB& fbb, const std::vector<FileBlock>& blocks) {
1391 std::vector<flatbuf::Block> fb_blocks;
1392
1393 for (const FileBlock& block : blocks) {
1394 fb_blocks.emplace_back(block.offset, block.metadata_length, block.body_length);
1395 }
1396
1397 return fbb.CreateVectorOfStructs(fb_blocks.data(), fb_blocks.size());
1398}
1399
1400Status WriteFileFooter(const Schema& schema, const std::vector<FileBlock>& dictionaries,
1401 const std::vector<FileBlock>& record_batches,

Callers 1

WriteFileFooterFunction · 0.85

Calls 3

emplace_backMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected