15#ifndef A11_WASM_GRAPH_SNAPSHOT_H_
16#define A11_WASM_GRAPH_SNAPSHOT_H_
22#include <absl/container/flat_hash_map.h>
23#include <absl/status/statusor.h>
39 absl::flat_hash_map<std::string, std::shared_ptr<stores::LocalChunkStore>>
44 std::shared_ptr<nodes::NodeMap>
nodes;
49 const std::shared_ptr<StoreRegistry>& registry,
50 std::string storage_id);
52 const std::string& storage_id);
54 std::string_view bytes,
const std::string& storage_id);
Definition boost_primitives.h:21
Definition async_task.cc:27
absl::StatusOr< RestoredStores > RestoreGraphSnapshot(std::string_view bytes, const std::string &storage_id)
Definition graph_snapshot.cc:127
absl::StatusOr< std::shared_ptr< nodes::NodeMap > > MakeTrackedNodeMap(const std::shared_ptr< StoreRegistry > ®istry, std::string storage_id)
Definition graph_snapshot.cc:45
absl::StatusOr< std::string > ExportGraphSnapshot(StoreRegistry ®istry, const std::string &storage_id)
Definition graph_snapshot.cc:67
Definition graph_snapshot.h:43
std::shared_ptr< StoreRegistry > registry
Definition graph_snapshot.h:45
std::shared_ptr< nodes::NodeMap > nodes
Definition graph_snapshot.h:44
Definition graph_snapshot.h:37
thread::Mutex mu
Definition graph_snapshot.h:38
absl::flat_hash_map< std::string, std::shared_ptr< stores::LocalChunkStore > > stores ABSL_GUARDED_BY(mu)