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 CypherInternalPbWriteAppBase {
24  public:
26  bool DoQuery(GraphDBSession& sess, Decoder& input, Encoder& output) override;
27 };
28 
30  public:
31  CountVerticesFactory() = default;
32  ~CountVerticesFactory() = default;
33 
34  AppWrapper CreateApp(const GraphDB& db) override;
35 };
36 
37 } // namespace gs
38 
39 #endif // ENGINES_GRAPH_DB_APP_BUILDIN_COUNT_VERTICES_H_
gs::CountVerticesFactory::CountVerticesFactory
CountVerticesFactory()=default
graph_db_session.h
gs::CountVertices::DoQuery
bool DoQuery(GraphDBSession &sess, Decoder &input, Encoder &output) override
Definition: count_vertices.cc:19
gs::CountVertices
Definition: count_vertices.h:23
gs
Definition: adj_list.h:23
gs::Encoder
Definition: app_utils.h:25
gs::Decoder
Definition: app_utils.h:65
gs::GraphDBSession
Definition: graph_db_session.h:36
gs::GraphDB
Definition: graph_db.h:70
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:29
gs::CountVerticesFactory::CreateApp
AppWrapper CreateApp(const GraphDB &db) override
Definition: count_vertices.cc:51
gs::AppFactoryBase
Definition: app_base.h:115