te::vp::Merge Class Reference

#include <Merge.h>

Inheritance diagram for te::vp::Merge:
te::vp::Algorithm

Public Types

enum  MergeStrategy { PUREMERGE = 0, TRYGETMAX = 1, AUTOINCREMENT = 2 }
 

Public Member Functions

bool executeMemory (te::vp::AlgorithmParams *mainParams)
 
bool executeQuery (te::vp::AlgorithmParams *mainParams)
 
 Merge ()
 
virtual ~Merge ()
 

Protected Member Functions

MergeStrategy checkStrategy ()
 
std::auto_ptr< te::da::DataSetTypegetOutputDataSetType (te::vp::AlgorithmParams *mainParams)
 
int getPropertyType (const te::dt::Property *p)
 
std::vector< std::pair< std::string, std::string > > getPropNames (const std::map< std::string, te::dt::AbstractData * > &specificParams)
 
bool isPrimaryKeyProperty (const te::da::DataSetType *dst, const std::string &p)
 
bool isUpdate (const std::map< std::string, te::dt::AbstractData * > &specificParams)
 
int tryGetMax ()
 
void updateInputDst (te::da::DataSourceTransactor *transactor)
 

Private Attributes

te::da::DataSetm_inputDs
 
te::da::DataSetTypem_inputDst
 
te::da::DataSourcePtr m_inputSource
 
int m_inputSRID
 
bool m_isUpdate
 
te::da::DataSetm_mergeDs
 
te::da::DataSetTypem_mergeDst
 
te::da::DataSourcePtr m_mergeSource
 
std::string m_outDsetName
 
te::da::DataSourcePtr m_outDsrc
 
std::vector< std::pair< std::string, std::string > > m_properties
 

Detailed Description

Definition at line 60 of file Merge.h.

Member Enumeration Documentation

Enumerator
PUREMERGE 
TRYGETMAX 
AUTOINCREMENT 

Definition at line 64 of file Merge.h.

Constructor & Destructor Documentation

te::vp::Merge::Merge ( )
virtual te::vp::Merge::~Merge ( )
inlinevirtual

Definition at line 73 of file Merge.h.

Member Function Documentation

MergeStrategy te::vp::Merge::checkStrategy ( )
protected
bool te::vp::Merge::executeMemory ( te::vp::AlgorithmParams mainParams)
virtual

Implements te::vp::Algorithm.

bool te::vp::Merge::executeQuery ( te::vp::AlgorithmParams mainParams)
virtual

Implements te::vp::Algorithm.

std::auto_ptr<te::da::DataSetType> te::vp::Merge::getOutputDataSetType ( te::vp::AlgorithmParams mainParams)
protected
int te::vp::Merge::getPropertyType ( const te::dt::Property p)
protected
std::vector<std::pair<std::string, std::string> > te::vp::Merge::getPropNames ( const std::map< std::string, te::dt::AbstractData * > &  specificParams)
protected
bool te::vp::Merge::isPrimaryKeyProperty ( const te::da::DataSetType dst,
const std::string &  p 
)
protected
bool te::vp::Merge::isUpdate ( const std::map< std::string, te::dt::AbstractData * > &  specificParams)
protected
int te::vp::Merge::tryGetMax ( )
protected
void te::vp::Merge::updateInputDst ( te::da::DataSourceTransactor transactor)
protected

Member Data Documentation

te::da::DataSet* te::vp::Merge::m_inputDs
private

Definition at line 101 of file Merge.h.

te::da::DataSetType* te::vp::Merge::m_inputDst
private

Definition at line 100 of file Merge.h.

te::da::DataSourcePtr te::vp::Merge::m_inputSource
private

Definition at line 99 of file Merge.h.

int te::vp::Merge::m_inputSRID
private

Definition at line 111 of file Merge.h.

bool te::vp::Merge::m_isUpdate
private

Definition at line 109 of file Merge.h.

te::da::DataSet* te::vp::Merge::m_mergeDs
private

Definition at line 104 of file Merge.h.

te::da::DataSetType* te::vp::Merge::m_mergeDst
private

Definition at line 103 of file Merge.h.

te::da::DataSourcePtr te::vp::Merge::m_mergeSource
private

Definition at line 102 of file Merge.h.

std::string te::vp::Merge::m_outDsetName
private

Definition at line 107 of file Merge.h.

te::da::DataSourcePtr te::vp::Merge::m_outDsrc
private

Definition at line 106 of file Merge.h.

std::vector<std::pair<std::string, std::string> > te::vp::Merge::m_properties
private

Definition at line 113 of file Merge.h.


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