JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
FlattenProjector.h
Go to the documentation of this file.
1 //
2 // Created by Nico Schäfer on 12/6/17.
3 //
4 
5 #ifndef JODA_FLATTENPROJECTOR_H
6 #define JODA_FLATTENPROJECTOR_H
7 
8 #include "../../../../../values/include/joda/query/values/IValueProvider.h"
9 #include "ISetProjector.h"
10 
11 namespace joda::query {
17  public:
18  FlattenProjector(const std::string &to,
19  std::unique_ptr<IValueProvider> &&from);
20  void project(const RapidJsonDocument &json,
21  std::vector<std::unique_ptr<RJDocument>> &newDocs,
22  bool view = false) override;
23  std::string getType() override;
24  static const std::string type;
25  std::string toString() override;
26  std::vector<std::string> getAttributes() const override;
27 
28  protected:
29  std::unique_ptr<IValueProvider> from;
30 };
31 } // namespace joda::query
32 
33 #endif // JODA_FLATTENPROJECTOR_H
Definition: RapidJsonDocument.h:22
Definition: FlattenProjector.h:16
std::string getType() override
Definition: FlattenProjector.cpp:37
void project(const RapidJsonDocument &json, std::vector< std::unique_ptr< RJDocument >> &newDocs, bool view=false) override
Definition: FlattenProjector.cpp:7
std::unique_ptr< IValueProvider > from
Definition: FlattenProjector.h:29
static const std::string type
Definition: FlattenProjector.h:24
std::vector< std::string > getAttributes() const override
Definition: FlattenProjector.cpp:48
FlattenProjector(const std::string &to, std::unique_ptr< IValueProvider > &&from)
Definition: FlattenProjector.cpp:40
std::string toString() override
Definition: FlattenProjector.cpp:43
Definition: ISetProjector.h:16
Definition: AttributeStatAggregator.h:12