2016-11-29 11:08:08 +08:00
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "query/util.hpp"
|
2017-02-14 16:37:32 +08:00
|
|
|
#include "query/plan_interface.hpp"
|
2016-11-29 11:08:08 +08:00
|
|
|
#include "storage/model/properties/all.hpp"
|
2017-02-14 16:37:32 +08:00
|
|
|
#include "storage/edge_x_vertex.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-14 16:37:32 +08:00
|
|
|
class CPUPlan : public PlanInterface<Stream>
|
2016-11-29 11:08:08 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2017-02-14 16:37:32 +08:00
|
|
|
bool run(Db &db, const PlanArgsT &args, Stream &stream) override
|
2016-11-29 11:08:08 +08:00
|
|
|
{
|
2016-11-29 21:08:29 +08:00
|
|
|
|
2016-11-29 11:08:08 +08:00
|
|
|
}
|
|
|
|
|
2017-02-14 16:37:32 +08:00
|
|
|
~CPUPlan() {}
|
2016-11-29 11:08:08 +08:00
|
|
|
};
|
|
|
|
|
2017-02-14 16:37:32 +08:00
|
|
|
extern "C" PlanInterface<Stream>* produce()
|
2016-11-29 11:08:08 +08:00
|
|
|
{
|
2017-02-14 16:37:32 +08:00
|
|
|
return new CPUPlan();
|
2016-11-29 11:08:08 +08:00
|
|
|
}
|
|
|
|
|
2017-02-14 16:37:32 +08:00
|
|
|
extern "C" void destruct(PlanInterface<Stream>* p)
|
2016-11-29 11:08:08 +08:00
|
|
|
{
|
|
|
|
delete p;
|
|
|
|
}
|