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

Function tableFunc

src/function/table/simple_table_function.cpp:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24common::offset_t tableFunc(simple_internal_table_func internalTableFunc,
25 const TableFuncInput& input, TableFuncOutput& output) {
26 const auto sharedState = input.sharedState->ptrCast<SimpleTableFuncSharedState>();
27 auto morsel = sharedState->getMorsel();
28 if (!morsel.hasMoreToOutput()) {
29 return 0;
30 }
31 return internalTableFunc(morsel, input, output.dataChunk);
32}
33
34table_func_t SimpleTableFunc::getTableFunc(simple_internal_table_func internalTableFunc) {
35 return std::bind(tableFunc, internalTableFunc, std::placeholders::_1, std::placeholders::_2);

Callers

nothing calls this directly

Calls 3

hasMoreToOutputMethod · 0.80
internalTableFuncFunction · 0.70
getMorselMethod · 0.45

Tested by

no test coverage detected