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

Method set

src/processor/operator/persistent/set_executor.cpp:45–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void SingleLabelNodeSetExecutor::set(ExecutionContext* context) {
46 if (tableInfo.columnID == INVALID_COLUMN_ID) {
47 // Not a valid column. Set projected column to null.
48 if (info.columnVectorPos.isValid()) {
49 info.columnVector->setNull(info.columnDataVector->state->getSelVector()[0], true);
50 }
51 return;
52 }
53 info.evaluator->evaluate();
54 auto updateState = std::make_unique<storage::NodeTableUpdateState>(tableInfo.columnID,
55 *info.nodeIDVector, *info.columnDataVector);
56 tableInfo.table->initUpdateState(context->clientContext, *updateState);
57 tableInfo.table->update(transaction::Transaction::Get(*context->clientContext), *updateState);
58 if (info.columnVectorPos.isValid()) {
59 writeColumnUpdateResult(info.nodeIDVector, info.columnVector, info.columnDataVector);
60 }
61}
62
63void MultiLabelNodeSetExecutor::set(ExecutionContext* context) {
64 info.evaluator->evaluate();

Callers 8

appendStringToTableMethod · 0.45
getNextTuplesInternalMethod · 0.45
executeOnMatchMethod · 0.45
executeOnNewPatternMethod · 0.45
scanInternalMethod · 0.45
ListColumnReaderMethod · 0.45

Calls 8

writeColumnUpdateResultFunction · 0.85
getSelSizeMethod · 0.80
isValidMethod · 0.45
setNullMethod · 0.45
evaluateMethod · 0.45
initUpdateStateMethod · 0.45
updateMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected