Entity Matching by Similarity Join
 
Loading...
Searching...
No Matches
DownSampler Class Reference

#include <down_sampler.h>

Inheritance diagram for DownSampler:
Sampler

Public Member Functions

 DownSampler ()=default
 
 DownSampler (ui _n, ui _y, std::string _blkAttr, bool _isRS)
 
 ~DownSampler ()=default
 
 DownSampler (const DownSampler &other)=delete
 
 DownSampler (DownSampler &&other)=delete
 
void sample (const std::string &pathTableA, const std::string &pathTableB)
 
 Sampler ()=default
 
 Sampler (std::string _blkAttr, bool _isRS)
 
 Sampler (const Sampler &other)=delete
 
 Sampler (Sampler &&other)=delete
 
- Public Member Functions inherited from Sampler
 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)
 

Public Attributes

ui n {0}
 
ui y {0}
 
std::unordered_map< ui, std::vector< ui > > tokenIndex
 
std::vector< std::pair< int, int > > samplePairs [MAXTHREADNUM]
 
- Public Attributes inherited from Sampler
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

◆ DownSampler() [1/4]

DownSampler::DownSampler ( )
default

◆ DownSampler() [2/4]

DownSampler::DownSampler ( ui _n,
ui _y,
std::string _blkAttr,
bool _isRS )
inline

◆ ~DownSampler()

DownSampler::~DownSampler ( )
default

◆ DownSampler() [3/4]

DownSampler::DownSampler ( const DownSampler & other)
delete

◆ DownSampler() [4/4]

DownSampler::DownSampler ( DownSampler && other)
delete

Member Function Documentation

◆ sample()

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

Implements Sampler.

◆ Sampler() [1/4]

Sampler::Sampler ( )
default

◆ Sampler() [2/4]

Sampler::Sampler ( const Sampler & other)
delete

◆ Sampler() [3/4]

Sampler::Sampler ( Sampler && other)
delete

◆ Sampler() [4/4]

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

Member Data Documentation

◆ n

ui DownSampler::n {0}

◆ samplePairs

std::vector<std::pair<int, int> > DownSampler::samplePairs[MAXTHREADNUM]

◆ tokenIndex

std::unordered_map<ui, std::vector<ui> > DownSampler::tokenIndex

◆ y

ui DownSampler::y {0}

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