![]() |
JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <ISetProjector.h>
Public Member Functions | |
| ISetProjector (const std::string &to) | |
| virtual | ~ISetProjector ()=default |
| virtual void | project (const RapidJsonDocument &json, std::vector< std::unique_ptr< RJDocument >> &newDocs, bool view=false)=0 |
| virtual std::string | getToPointer () const final |
| RJPointer | getRawToPointer () const |
| virtual std::string | getType ()=0 |
| virtual std::string | toString () |
| virtual std::vector< std::string > | getAttributes () const =0 |
Protected Member Functions | |
| 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) |
Protected Attributes | |
| RJPointer | ptr |
| std::string | ptr_str |
Interface representing a single transformation used by the AS statement This interface only represents 1:N transformations
|
inline |
Initializes one ISetProjector with a given destination pointer-string
| to | the pointer-string where the transformation result should be stored |
|
virtualdefault |
|
inlineprotected |
|
pure virtual |
Returns a list of attributes used by this projection
Implemented in joda::query::FlattenProjector.
|
inline |
Returns the destination pointer
|
inlinefinalvirtual |
Returns the destination pointer string
|
pure virtual |
Returns a string representing the transformation function
Implemented in joda::query::FlattenProjector.
|
inlineprotected |
|
pure virtual |
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 |
Implemented in joda::query::FlattenProjector.
|
inlinevirtual |
Returns a string representing the whole transformation as it would be specified in a query
Reimplemented in joda::query::FlattenProjector.
|
protected |
|
protected |