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

Method getOutputWriter

src/function/gds/wsp_paths.cpp:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 }
137
138 std::unique_ptr<RJOutputWriter> getOutputWriter(ExecutionContext* context,
139 const RJBindData& bindData, GDSComputeState& computeState, nodeID_t sourceNodeID,
140 RecursiveExtendSharedState* sharedState) override {
141 auto bfsGraph = computeState.auxiliaryState->ptrCast<WSPPathsAuxiliaryState>()
142 ->getBFSGraphManager()
143 ->getCurrentGraph();
144 auto writerInfo = bindData.getPathWriterInfo();
145 return std::make_unique<WSPPathsOutputWriter>(context->clientContext,
146 sharedState->getOutputNodeMaskMap(), sourceNodeID, writerInfo, *bfsGraph);
147 }
148};
149
150std::unique_ptr<RJAlgorithm> WeightedSPPathsFunction::getAlgorithm() {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected