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

Method getOutputWriter

src/function/gds/asp_paths.cpp:97–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 }
96
97 std::unique_ptr<RJOutputWriter> getOutputWriter(ExecutionContext* context,
98 const RJBindData& bindData, GDSComputeState& computeState, nodeID_t sourceNodeID,
99 RecursiveExtendSharedState* sharedState) override {
100 auto bfsGraph = computeState.auxiliaryState->ptrCast<PathAuxiliaryState>()
101 ->getBFSGraphManager()
102 ->getCurrentGraph();
103 auto writerInfo = bindData.getPathWriterInfo();
104 writerInfo.pathNodeMask = sharedState->getPathNodeMaskMap();
105 return std::make_unique<SPPathsOutputWriter>(context->clientContext,
106 sharedState->getOutputNodeMaskMap(), sourceNodeID, writerInfo, *bfsGraph);
107 }
108};
109
110std::unique_ptr<RJAlgorithm> AllSPPathsFunction::getAlgorithm() {

Callers 1

executeInternalMethod · 0.45

Calls 5

getCurrentGraphMethod · 0.80
getPathWriterInfoMethod · 0.80
getPathNodeMaskMapMethod · 0.80
getOutputNodeMaskMapMethod · 0.80
getBFSGraphManagerMethod · 0.45

Tested by

no test coverage detected