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

Method getComputeState

src/function/gds/ssp_paths.cpp:75–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74private:
75 std::unique_ptr<GDSComputeState> getComputeState(ExecutionContext* context, const RJBindData&,
76 RecursiveExtendSharedState* sharedState) override {
77 auto clientContext = context->clientContext;
78 auto frontier = DenseFrontier::getUninitializedFrontier(context, sharedState->graph.get());
79 auto frontierPair = std::make_unique<SPFrontierPair>(std::move(frontier));
80 auto transaction = transaction::Transaction::Get(*context->clientContext);
81 auto bfsGraph =
82 std::make_unique<BFSGraphManager>(sharedState->graph->getMaxOffsetMap(transaction),
83 storage::MemoryManager::Get(*clientContext));
84 auto edgeCompute =
85 std::make_unique<SSPPathsEdgeCompute>(frontierPair.get(), bfsGraph.get());
86 auto auxiliaryState = std::make_unique<PathAuxiliaryState>(std::move(bfsGraph));
87 return std::make_unique<GDSComputeState>(std::move(frontierPair), std::move(edgeCompute),
88 std::move(auxiliaryState));
89 }
90
91 std::unique_ptr<RJOutputWriter> getOutputWriter(ExecutionContext* context,
92 const RJBindData& bindData, GDSComputeState& computeState, nodeID_t sourceNodeID,

Callers

nothing calls this directly

Calls 2

getMaxOffsetMapMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected