Public Member Functions | Protected Member Functions | Protected Attributes

MaPI_MapReduce< KeyA, A, KeyB, B, C > Class Template Reference

MaPI_MapReduce. More...

#include <mapreduce.hpp>

Inheritance diagram for MaPI_MapReduce< KeyA, A, KeyB, B, C >:
MapReduce< KeyA, A, KeyB, B, C >

List of all members.

Public Member Functions

virtual vector< pair< KeyB, C > > run (Mapper< KeyA, A, KeyB, B, C > &mapper, Reducer< KeyA, A, KeyB, B, C > &reducer, vector< pair< KeyA, A > > &as)
 MapReduce execution (implemented by library).
 MaPI_MapReduce ()
 Constructor.
 MaPI_MapReduce (MaPI_Mapper< KeyA, A, KeyB, B, C > *_mapper, MaPI_Reducer< KeyA, A, KeyB, B, C > *_reducer)
 Constructor.
void registry (MaPI_Mapper< KeyA, A, KeyB, B, C > *_mapper, MaPI_Reducer< KeyA, A, KeyB, B, C > *_reducer)
 Mapper and Reducer registry.
void registry (MaPI_Mapper< KeyA, A, KeyB, B, C > *_mapper)
 Mapper registry.
void registry (MaPI_Reducer< KeyA, A, KeyB, B, C > *_reducer)
 Reducer registry.
void initServers (int argc, char **argv)
 Servers initialization.
virtual ~MaPI_MapReduce ()
 Destructor.
int id (MaPI_Mapper< KeyA, A, KeyB, B, C > *_mapper)
 Mapper identification.
int id (MaPI_Reducer< KeyA, A, KeyB, B, C > *_reducer)
 Mapper identification.
int getMPISize ()
 Number of processes.
int getMPIRank ()
 MRRank.
MPI_Status * getMPIStatus ()
 MRStat.

Protected Member Functions

void server ()
void finalize ()

Protected Attributes

vector< MaPI_Mapper< KeyA, A,
KeyB, B, C > * > 
mappers
vector< MaPI_Reducer< KeyA, A,
KeyB, B, C > * > 
reducers
int MRSize
int MRRank
MPI_Status MRStat

Detailed Description

template<class KeyA, class A, class KeyB, class B, class C>
class MaPI_MapReduce< KeyA, A, KeyB, B, C >

MaPI_MapReduce.

Esta classe deve ser única na aplicação. Além disso é preciso registrar todos os mappers e todos os reducers.


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