2016-11-29 11:08:08 +08:00
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
|
2017-03-01 02:38:57 +08:00
|
|
|
#include "query/backend/cpp/typed_value.hpp"
|
2017-02-14 16:37:32 +08:00
|
|
|
#include "query/plan_interface.hpp"
|
2016-11-29 21:08:29 +08:00
|
|
|
#include "using.hpp"
|
2016-11-29 11:08:08 +08:00
|
|
|
|
|
|
|
using std::cout;
|
|
|
|
using std::endl;
|
|
|
|
|
2017-02-14 16:37:32 +08:00
|
|
|
// Query:
|
2016-11-29 11:08:08 +08:00
|
|
|
|
2017-02-27 20:51:54 +08:00
|
|
|
class CPUPlan : public PlanInterface<Stream> {
|
|
|
|
public:
|
2017-03-01 02:38:57 +08:00
|
|
|
bool run(GraphDbAccessor &db_accessor, const PropertyValueStore<> &args,
|
2017-02-27 20:51:54 +08:00
|
|
|
Stream &stream) {
|
2017-03-06 21:17:55 +08:00
|
|
|
db_accessor.commit();
|
2017-02-27 20:51:54 +08:00
|
|
|
return true;
|
|
|
|
}
|
2016-11-29 11:08:08 +08:00
|
|
|
|
2017-02-27 20:51:54 +08:00
|
|
|
~CPUPlan() {}
|
2016-11-29 11:08:08 +08:00
|
|
|
};
|
|
|
|
|
2017-02-27 20:51:54 +08:00
|
|
|
extern "C" PlanInterface<Stream> *produce() { return new CPUPlan(); }
|
2016-11-29 11:08:08 +08:00
|
|
|
|
2017-02-27 20:51:54 +08:00
|
|
|
extern "C" void destruct(PlanInterface<Stream> *p) { delete p; }
|