Entity Matching by Similarity Join
 
Loading...
Searching...
No Matches
Sampler Class Referenceabstract

#include <base_sampler.h>

Inheritance diagram for Sampler:
DownSampler JacSampler OvlpSampler

Public Member Functions

 Sampler ()=default
 
 Sampler (std::string _blkAttr, bool _isRS)
 
 ~Sampler ()=default
 
 Sampler (const Sampler &other)=delete
 
 Sampler (Sampler &&other)=delete
 
void readTable (const std::string &_pathTableA, const std::string &_pathTableB)
 
void prepareRecords (ui columnA, ui columnB, TokenizerType tt, ui q)
 
virtual void sample (const std::string &pathTableA, const std::string &pathTableB)=0
 

Public Attributes

std::string blkAttr
 
bool isRS {false}
 
ui numWord {0}
 
std::string pathTableA
 
std::string pathTableB
 
Table tableA
 
Table tableB
 
std::vector< std::vector< ui > > recordsA
 
std::vector< std::vector< ui > > recordsB
 
std::vector< double > weightsA
 
std::vector< double > weightsB
 
std::vector< double > wordwt
 
std::vector< uiidMapA
 
std::vector< uiidMapB
 
std::vector< std::pair< int, int > > pairs
 

Constructor & Destructor Documentation

◆ Sampler() [1/4]

Sampler::Sampler ( )
default

◆ Sampler() [2/4]

Sampler::Sampler ( std::string _blkAttr,
bool _isRS )
inline

◆ ~Sampler()

Sampler::~Sampler ( )
default

◆ Sampler() [3/4]

Sampler::Sampler ( const Sampler & other)
delete

◆ Sampler() [4/4]

Sampler::Sampler ( Sampler && other)
delete

Member Function Documentation

◆ prepareRecords()

void Sampler::prepareRecords ( ui columnA,
ui columnB,
TokenizerType tt,
ui q )

◆ readTable()

void Sampler::readTable ( const std::string & _pathTableA,
const std::string & _pathTableB )

◆ sample()

virtual void Sampler::sample ( const std::string & pathTableA,
const std::string & pathTableB )
pure virtual

Implemented in DownSampler, JacSampler, and OvlpSampler.

Member Data Documentation

◆ blkAttr

std::string Sampler::blkAttr

◆ idMapA

std::vector<ui> Sampler::idMapA

◆ idMapB

std::vector<ui> Sampler::idMapB

◆ isRS

bool Sampler::isRS {false}

◆ numWord

ui Sampler::numWord {0}

◆ pairs

std::vector<std::pair<int, int> > Sampler::pairs

◆ pathTableA

std::string Sampler::pathTableA

◆ pathTableB

std::string Sampler::pathTableB

◆ recordsA

std::vector<std::vector<ui> > Sampler::recordsA

◆ recordsB

std::vector<std::vector<ui> > Sampler::recordsB

◆ tableA

Table Sampler::tableA

◆ tableB

Table Sampler::tableB

◆ weightsA

std::vector<double> Sampler::weightsA

◆ weightsB

std::vector<double> Sampler::weightsB

◆ wordwt

std::vector<double> Sampler::wordwt

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