JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
PointerCopyProject.h
Go to the documentation of this file.
1 //
2 // Created by Nico Schäfer on 11/14/17.
3 //
4 
5 #ifndef JODA_POINTERCOPYPROJECT_H
6 #define JODA_POINTERCOPYPROJECT_H
7 
8 #include "IProjector.h"
9 
10 namespace joda::query {
15  public:
16  PointerCopyProject(const std::string &to, const std::string &from);
17  std::string getType() override;
18  static const std::string type;
19  static const std::string allCopy;
20  std::string toString() override;
21  std::vector<std::string> getMaterializeAttributes() const override;
22 
23  protected:
24  RJValue getVal(const RapidJsonDocument &json,
25  RJMemoryPoolAlloc &alloc) override;
27  std::string from_str;
28  bool copyAll = false;
29 };
30 } // namespace joda::query
31 
32 #endif // JODA_POINTERCOPYPROJECT_H
rapidjson::MemoryPoolAllocator< RJBaseAlloc > RJMemoryPoolAlloc
Definition: RJFwd.h:26
rapidjson::GenericPointer< RJValue, RJBaseAlloc > RJPointer
Definition: RJFwd.h:30
rapidjson::GenericValue< RJChar, RJMemoryPoolAlloc > RJValue
Definition: RJFwd.h:29
Definition: RapidJsonDocument.h:22
Definition: IProjector.h:15
Definition: PointerCopyProject.h:14
RJPointer from
Definition: PointerCopyProject.h:26
RJValue getVal(const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) override
Definition: PointerCopyProject.cpp:15
PointerCopyProject(const std::string &to, const std::string &from)
Definition: PointerCopyProject.cpp:8
std::string toString() override
Definition: PointerCopyProject.cpp:44
bool copyAll
Definition: PointerCopyProject.h:28
std::string from_str
Definition: PointerCopyProject.h:27
std::string getType() override
Definition: PointerCopyProject.cpp:35
static const std::string allCopy
Definition: PointerCopyProject.h:19
static const std::string type
Definition: PointerCopyProject.h:18
std::vector< std::string > getMaterializeAttributes() const override
Definition: PointerCopyProject.cpp:52
Definition: AttributeStatAggregator.h:12