| 73 | |
| 74 | private: |
| 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, |
nothing calls this directly
no test coverage detected