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

Function FileBlocksToFlatbuffer

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

Source from the content-addressed store, hash-verified

1392}
1393
1394static flatbuffers::Offset<flatbuffers::Vector<const flatbuf::Block*>>
1395FileBlocksToFlatbuffer(FBB& fbb, const std::vector<FileBlock>& blocks) {
1396 std::vector<flatbuf::Block> fb_blocks;
1397
1398 for (const FileBlock& block : blocks) {
1399 fb_blocks.emplace_back(block.offset, block.metadata_length, block.body_length);
1400 }
1401
1402 return fbb.CreateVectorOfStructs(fb_blocks.data(), fb_blocks.size());
1403}
1404
1405Status WriteFileFooter(const Schema& schema, const std::vector<FileBlock>& dictionaries,
1406 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