JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Public Member Functions | Protected Member Functions
joda::query::DeletePointerProjector Class Reference

#include <DeletePointerProjector.h>

Inheritance diagram for joda::query::DeletePointerProjector:
[legend]
Collaboration diagram for joda::query::DeletePointerProjector:
[legend]

Public Member Functions

 DeletePointerProjector (const std::string &to)
 
 ~DeletePointerProjector () override=default
 
std::string getType () override
 
void project (const RapidJsonDocument &json, RJDocument &newDoc, bool view=false) override
 
std::string toString () override
 
std::vector< std::string > getMaterializeAttributes () const override
 
- Public Member Functions inherited from joda::query::IProjector
 IProjector (const std::string &to)
 
virtual ~IProjector ()=default
 
std::string getToPointer () const
 
const RJPointergetRawToPointer () const
 

Protected Member Functions

RJValue getVal (const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) override
 

Additional Inherited Members

- Protected Attributes inherited from joda::query::IProjector
RJPointer ptr
 
std::string ptr_str
 

Constructor & Destructor Documentation

◆ DeletePointerProjector()

joda::query::DeletePointerProjector::DeletePointerProjector ( const std::string &  to)

◆ ~DeletePointerProjector()

joda::query::DeletePointerProjector::~DeletePointerProjector ( )
overridedefault

Member Function Documentation

◆ getMaterializeAttributes()

std::vector< std::string > joda::query::DeletePointerProjector::getMaterializeAttributes ( ) const
overridevirtual

Returns a list of attributes that have to be materialized for this projection to work

Returns

Implements joda::query::IProjector.

◆ getType()

std::string joda::query::DeletePointerProjector::getType ( )
overridevirtual

Returns a string representing the transformation function

Returns

Implements joda::query::IProjector.

◆ getVal()

RJValue joda::query::DeletePointerProjector::getVal ( const RapidJsonDocument json,
RJMemoryPoolAlloc alloc 
)
overrideprotectedvirtual

◆ project()

void joda::query::DeletePointerProjector::project ( const RapidJsonDocument json,
RJDocument newDoc,
bool  view = false 
)
overridevirtual

Projects a value from a source document into the destination document. This function uses the (overwritten) getVal function to retrieve the value and stores the result at the to-pointer in the new document

Parameters
jsonthe source document, used to retrieve values from
newDocthe destination document, used to store transformed values in
flagindicating if projecting from a view

Reimplemented from joda::query::IProjector.

Here is the call graph for this function:

◆ toString()

std::string joda::query::DeletePointerProjector::toString ( )
overridevirtual

Returns a string representing the whole transformation as it would be specified in a query

Returns

Reimplemented from joda::query::IProjector.

Here is the call graph for this function:

The documentation for this class was generated from the following files: