1 #ifndef LIBFASTER_WORKERFDDGROUP_H
2 #define LIBFASTER_WORKERFDDGROUP_H
7 #include "workerFddBase.h"
14 std::vector<workerFddBase*> members;
24 std::vector< std::vector<void*>> findKeyInterval(
size_t i);
25 std::vector< std::vector<void*> > * getMemberKeyLocations(
size_t i);
32 template <
typename L,
typename U>
33 void _applyI(
void * func, fddOpType op,
workerFddBase * dest);
36 void _applyReduce(
void * func, fddOpType op,
fastCommBuffer & buffer);
39 void _preApply(
void * func, fddOpType op,
workerFddBase * dest);
42 void _preApplyI(
void * func, fddOpType op,
workerFddBase * dest);
49 template <
typename L,
typename U>
56 template <
typename L,
typename U>
57 void flatMapByKeyI(
workerFddBase * dest,
void * mapByKeyFunc);
61 template <
typename L,
typename U>
64 void updateByKey(
void * mapByKeyFunc);
65 void bulkUpdate(
void * mapByKeyFunc);
67 void exchangeDataByKey(
fastComm *comm UNUSED,
void * keyMap UNUSED){};
68 std::vector< std::vector<void*> > * getKeyLocations(){
return NULL; }
72 workerFddGroup(
unsigned long int id, fddType keyT, std::vector<workerFddBase*> & members);
74 fddType getType() {
return Null; }
75 fddType getKeyType() {
return this->keyType; }
77 void setData(
void * d UNUSED,
size_t s UNUSED) {}
78 void setData(
void * d UNUSED,
size_t * ds UNUSED,
size_t s UNUSED) {}
79 void setData(
void * k UNUSED,
void * d UNUSED,
size_t s UNUSED) {}
80 void setData(
void * k UNUSED,
void * d UNUSED,
size_t * ds UNUSED,
size_t s UNUSED) {}
82 void setDataRaw(
void * d UNUSED,
size_t s UNUSED) {}
83 void setDataRaw(
void * d UNUSED,
size_t * ds UNUSED,
size_t s UNUSED) {}
84 void setDataRaw(
void * k UNUSED,
void * d UNUSED,
size_t s UNUSED) {}
85 void setDataRaw(
void * k UNUSED,
void * d UNUSED,
size_t * ds UNUSED,
size_t s UNUSED) {}
87 void * getItem(
size_t UNUSED p) {
return NULL; }
89 void * getKeys() {
return NULL; }
90 void * getData() {
return NULL; }
91 size_t getSize() {
return 0; }
92 size_t * getLineSizes() {
return NULL; }
93 void setSize(
size_t s UNUSED) {}
95 size_t itemSize() {
return 0; }
96 size_t baseSize() {
return 0; }
98 void deleteItem(
void * item UNUSED) {}
101 void insertl(
void * v UNUSED) {}
102 void insert(
void * k UNUSED,
void * v UNUSED,
size_t s UNUSED) {}
105 void preapply(
unsigned long int id,
void * func, fddOpType op,
workerFddBase * dest,
fastComm * comm) ;
107 void collect(
fastComm * comm UNUSED) { }
Definition: fastComm.h:116
Definition: workerFddBase.h:15
Definition: fastCommBuffer.h:15
Definition: _workerFdd.h:11
Definition: workerFddGroup.h:12