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

Method writeToTable

src/processor/operator/persistent/copy_rel_batch_insert.cpp:80–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void CopyRelBatchInsert::writeToTable(RelBatchInsertExecutionState& executionState,
81 const storage::InMemChunkedCSRHeader&, const RelBatchInsertLocalState& localState,
82 BatchInsertSharedState& sharedState, const RelBatchInsertInfo& relInfo) {
83 auto& copyRelExecutionState = executionState.cast<CopyRelBatchInsertExecutionState>();
84 for (auto& chunkedGroup : copyRelExecutionState.partitioningBuffer->getChunkedGroups()) {
85 sharedState.incrementNumRows(chunkedGroup->getNumRows());
86 // we reused the bound node offset column to store row idx
87 // the row idx column determines which rows to write each entry in the chunked group to
88 localState.chunkedGroup->write(*chunkedGroup, relInfo.boundNodeOffsetColumnID);
89 }
90}
91} // namespace processor
92} // namespace lbug

Callers 1

appendNodeGroupMethod · 0.80

Calls 2

getNumRowsMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected