![]() |
JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <FlattenProjector.h>
Public Member Functions | |
| FlattenProjector (const std::string &to, std::unique_ptr< IValueProvider > &&from) | |
| void | project (const RapidJsonDocument &json, std::vector< std::unique_ptr< RJDocument >> &newDocs, bool view=false) override |
| std::string | getType () override |
| std::string | toString () override |
| std::vector< std::string > | getAttributes () const override |
Public Member Functions inherited from joda::query::ISetProjector | |
| ISetProjector (const std::string &to) | |
| virtual | ~ISetProjector ()=default |
| virtual std::string | getToPointer () const final |
| RJPointer | getRawToPointer () const |
Static Public Attributes | |
| static const std::string | type = "FlattenProjector" |
Protected Attributes | |
| std::unique_ptr< IValueProvider > | from |
Protected Attributes inherited from joda::query::ISetProjector | |
| RJPointer | ptr |
| std::string | ptr_str |
Additional Inherited Members | |
Protected Member Functions inherited from joda::query::ISetProjector | |
| unsigned long | multiplicate (std::vector< std::unique_ptr< RJDocument >> &newDocs, int times) |
| void | fillArrayRangeWithVal (std::vector< std::unique_ptr< RJDocument >> &newDocs, unsigned long origDocs, int i, RJValue &val) |
Transformation flattening an array of values to multiple documents, each containing one of the values
| joda::query::FlattenProjector::FlattenProjector | ( | const std::string & | to, |
| std::unique_ptr< IValueProvider > && | from | ||
| ) |
|
overridevirtual |
|
overridevirtual |
Returns a string representing the transformation function
Implements joda::query::ISetProjector.
|
overridevirtual |
Projects a value from a source document into the destination document.
| json | the source document, used to retrieve values from |
| newDocs | the destination documents, used to store transformed values in |
Implements joda::query::ISetProjector.
|
overridevirtual |
Returns a string representing the whole transformation as it would be specified in a query
Reimplemented from joda::query::ISetProjector.
|
protected |
|
static |