MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / ArrowRowBatch

Method ArrowRowBatch

src/common/arrow/arrow_row_batch.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 bool fallbackExtensionTypes);
18
19ArrowRowBatch::ArrowRowBatch(const std::vector<LogicalType>& types, std::int64_t capacity,
20 bool fallbackExtensionTypes)
21 : numTuples{0}, fallbackExtensionTypes{fallbackExtensionTypes} {
22 vectors.resize(types.size());
23 for (auto i = 0u; i < types.size(); i++) {
24 vectors[i] = std::make_unique<ArrowVector>();
25 resizeVector(vectors[i].get(), types[i], capacity, fallbackExtensionTypes);
26 }
27}
28
29static uint64_t getArrowMainBufferSize(const LogicalType& type, uint64_t capacity,
30 bool fallbackExtensionTypes) {

Callers

nothing calls this directly

Calls 4

resizeVectorFunction · 0.85
resizeMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected