Flex  0.17.9
count_vertices.h
Go to the documentation of this file.
1 
16 #ifndef ENGINES_GRAPH_DB_APP_BUILDIN_COUNT_VERTICES_H_
17 #define ENGINES_GRAPH_DB_APP_BUILDIN_COUNT_VERTICES_H_
19 #include "flex/engines/hqps_db/app/interactive_app_base.h"
20 
21 namespace gs {
22 // A simple app to count the number of vertices of a given label.
23 class CountVertices : public CypherReadAppBase<std::string> {
24  public:
26  results::CollectiveResults Query(const GraphDBSession& sess,
27  std::string param) override;
28 };
29 
31  public:
32  CountVerticesFactory() = default;
33  ~CountVerticesFactory() = default;
34 
35  AppWrapper CreateApp(const GraphDB& db) override;
36 };
37 
38 } // namespace gs
39 
40 #endif // ENGINES_GRAPH_DB_APP_BUILDIN_COUNT_VERTICES_H_
Definition: app_base.h:115
Definition: app_base.h:78
Definition: count_vertices.h:30
AppWrapper CreateApp(const GraphDB &db) override
Definition: count_vertices.cc:44
Definition: count_vertices.h:23
results::CollectiveResults Query(const GraphDBSession &sess, std::string param) override
Definition: count_vertices.cc:19
CountVertices()
Definition: count_vertices.h:25
Definition: graph_db_session.h:36
Definition: graph_db.h:77
Definition: adj_list.h:23