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

Method getNextTuplesInternal

src/processor/operator/standalone_call.cpp:17–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17bool StandaloneCall::getNextTuplesInternal(ExecutionContext* context) {
18 if (standaloneCallInfo.hasExecuted) {
19 return false;
20 }
21 standaloneCallInfo.hasExecuted = true;
22 switch (standaloneCallInfo.option->optionType) {
23 case main::OptionType::CONFIGURATION: {
24 const auto configurationOption =
25 common::dynamic_cast_checked<const main::ConfigurationOption*>(
26 standaloneCallInfo.option);
27 configurationOption->setContext(context->clientContext, standaloneCallInfo.optionValue);
28 break;
29 }
30 case main::OptionType::EXTENSION:
31 context->clientContext->setExtensionOption(standaloneCallInfo.option->name,
32 standaloneCallInfo.optionValue);
33 break;
34 }
35 metrics->numOutputTuple.incrementByOne();
36 return true;
37}
38
39} // namespace processor
40} // namespace lbug

Callers

nothing calls this directly

Calls 3

setContextMethod · 0.80
setExtensionOptionMethod · 0.80
incrementByOneMethod · 0.80

Tested by

no test coverage detected