#include <mapreduce.hpp>
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 |
Esta classe deve ser única na aplicação. Além disso é preciso registrar todos os mappers e todos os reducers.
1.7.1