JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Public Member Functions | Protected Types | Protected Attributes
JoinManager Class Referenceabstract

#include <JoinManager.h>

Inheritance diagram for JoinManager:
[legend]
Collaboration diagram for JoinManager:
[legend]

Public Member Functions

 JoinManager (std::string name, std::unique_ptr< joda::query::IValueProvider > &&valProv)
 
virtual ~JoinManager ()
 
virtual void join (const RapidJsonDocument &doc)=0
 
virtual void join (JSONContainer &cont)
 
virtual const std::string & getName () const
 

Protected Types

enum  JoinVals { NOT_HASHABLE = 0 , FALSE_VAL = 1 , TRUE_VAL = 2 , STARTNORMAL_VAL = 3 }
 

Protected Attributes

std::string name
 
std::unique_ptr< joda::query::IValueProvidervalProv
 

Detailed Description

The JoinManager is an interface for joining/grouping documents using different techniques.

Member Enumeration Documentation

◆ JoinVals

enum JoinManager::JoinVals
protected
Enumerator
NOT_HASHABLE 
FALSE_VAL 
TRUE_VAL 
STARTNORMAL_VAL 

Constructor & Destructor Documentation

◆ JoinManager()

JoinManager::JoinManager ( std::string  name,
std::unique_ptr< joda::query::IValueProvider > &&  valProv 
)

Initializes the name/identifier and IValueProvider of the JoinManager

Parameters
nameThe name/identifier of the join
valProvThe IValueProvider to receive the join values from.

◆ ~JoinManager()

JoinManager::~JoinManager ( )
virtualdefault

Member Function Documentation

◆ getName()

const std::string & JoinManager::getName ( ) const
virtual

Returns the name/identifier of the join.

Returns
the name/identifier of the join

Reimplemented in MemoryJoinManager.

Here is the caller graph for this function:

◆ join() [1/2]

virtual void JoinManager::join ( const RapidJsonDocument doc)
pure virtual

Joins a single document with the others

Parameters
docThe RapidJsonDocument to join

Implemented in MemoryJoinManager, and FileJoinManager.

Here is the caller graph for this function:

◆ join() [2/2]

void JoinManager::join ( JSONContainer cont)
virtual

Joins a container

Parameters
contContainer to join
Here is the call graph for this function:

Field Documentation

◆ name

std::string JoinManager::name
protected

◆ valProv

std::unique_ptr<joda::query::IValueProvider> JoinManager::valProv
protected

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