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_
gs::CountVerticesFactory::CountVerticesFactory
CountVerticesFactory()=default
graph_db_session.h
gs::CountVertices
Definition: count_vertices.h:23
gs
Definition: adj_list.h:23
gs::GraphDBSession
Definition: graph_db_session.h:36
gs::GraphDB
Definition: graph_db.h:77
gs::CountVerticesFactory::~CountVerticesFactory
~CountVerticesFactory()=default
gs::CountVertices::CountVertices
CountVertices()
Definition: count_vertices.h:25
gs::AppWrapper
Definition: app_base.h:78
gs::CountVerticesFactory
Definition: count_vertices.h:30
gs::CountVertices::Query
results::CollectiveResults Query(const GraphDBSession &sess, std::string param) override
Definition: count_vertices.cc:19
gs::CountVerticesFactory::CreateApp
AppWrapper CreateApp(const GraphDB &db) override
Definition: count_vertices.cc:44
gs::AppFactoryBase
Definition: app_base.h:115