2016-11-29 11:08:08 +08:00
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "query/util.hpp"
|
|
|
|
#include "query/i_plan_cpu.hpp"
|
|
|
|
#include "storage/model/properties/all.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;
|
|
|
|
|
|
|
|
// query:
|
|
|
|
|
2016-11-29 21:08:29 +08:00
|
|
|
class CodeCPU : public IPlanCPU<Stream>
|
2016-11-29 11:08:08 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2016-11-29 21:08:29 +08:00
|
|
|
bool run(Db &db, plan_args_t &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
|
|
|
}
|
|
|
|
|
2016-11-29 21:08:29 +08:00
|
|
|
~CodeCPU() {}
|
2016-11-29 11:08:08 +08:00
|
|
|
};
|
|
|
|
|
2016-11-29 21:08:29 +08:00
|
|
|
extern "C" IPlanCPU<Stream>* produce()
|
2016-11-29 11:08:08 +08:00
|
|
|
{
|
2016-11-29 21:08:29 +08:00
|
|
|
return new CodeCPU();
|
2016-11-29 11:08:08 +08:00
|
|
|
}
|
|
|
|
|
2016-11-29 21:08:29 +08:00
|
|
|
extern "C" void destruct(IPlanCPU<Stream>* p)
|
2016-11-29 11:08:08 +08:00
|
|
|
{
|
|
|
|
delete p;
|
|
|
|
}
|