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

Method getOutputWriter

src/function/gds/ssp_paths.cpp:91–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected