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

Method init

src/processor/operator/persistent/merge.cpp:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void MergeLocalState::init(ResultSet& resultSet, main::ClientContext* context, MergeInfo& info) {
47 std::vector<common::LogicalType> types;
48 for (auto& evaluator : info.keyEvaluators) {
49 auto keyVector = evaluator->resultVector.get();
50 types.push_back(keyVector->dataType.copy());
51 keyVectors.push_back(keyVector);
52 }
53 // TODO: remove types
54 hashTable = std::make_unique<PatternCreationInfoTable>(*storage::MemoryManager::Get(*context),
55 std::move(types), std::move(info.tableSchema));
56 existenceVector = resultSet.getValueVector(info.existenceMark).get();
57}
58
59bool MergeLocalState::patternExists() const {
60 DASSERT(existenceVector->state->getSelVector().getSelSize() == 1);

Callers 6

Calls 4

getMethod · 0.45
push_backMethod · 0.45
copyMethod · 0.45
getValueVectorMethod · 0.45

Tested by

no test coverage detected