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

Method updateID

src/processor/result/pattern_creation_info_table.cpp:6–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace processor {
5
6void PatternCreationInfo::updateID(common::executor_id_t executorID,
7 common::executor_info executorInfo, bool storeInsertedPatternIDs,
8 common::nodeID_t nodeID) const {
9 if (storeInsertedPatternIDs) {
10 *(common::nodeID_t*)(tuple + executorID * sizeof(common::nodeID_t)) = nodeID;
11 return;
12 }
13 if (!executorInfo.contains(executorID)) {
14 return;
15 }
16 auto ftColIndex = executorInfo.at(executorID);
17 *(common::nodeID_t*)(tuple + ftColIndex * sizeof(common::nodeID_t)) = nodeID;
18}
19
20PatternCreationInfoTable::PatternCreationInfoTable(storage::MemoryManager& memoryManager,
21 std::vector<common::LogicalType> keyTypes, FactorizedTableSchema tableSchema)

Callers 1

executeOnNewPatternMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected